DEV Community

Discussion on: Best practices for reversing a string in JavaScript, C++ & Python

Collapse
 
delta456 profile image
Swastik Baranwal

Do not use #include<bits/stdc++.h>, it only works for UNIX systems. You should strongly prefer to use #include <algorithm> instead.

Collapse
 
pratyus92592602 profile image
Pratyush Kumar

Not necessary. I've used #include on Windows and it works perfectly fine

Collapse
 
delta456 profile image
Swastik Baranwal

What compiler have you used? I think you should read this stackoverflow.com/questions/318160...

Thread Thread
 
pratyus92592602 profile image
Pratyush Kumar

IDE: CodeBlocks
Compiler: MS Visual C++.
I have tried #include in vs code and it doesn't work.