[C++] Need help with compilators

Experienced Elementalist
Joined
Jul 7, 2004
Messages
207
Reaction score
0
First of all, I would like to know what's the most recommended free (a.k.a.) downloadable compiler for this coding language. In case you say it's Dev-C++, I was wondering how the heck can you pause a cout function. I created the famous "Hello world!" code, but my dos console doesn't look like going to allow me seeing the "Press any key to continue" line. Any help?

P.S. I know I can make it by myself writing the cout press any key to continue and making it stop until you press the button.
 
Username1 will shout at me for this, but system("PAUSE"); will let you see that press any key line :wink:

Also, Dev-cpp is NOT a compiler. Its an IDE, which uses the GCC, Gnu C++ Compiler. Another much used one is Microsofts VCC, Visual C++ Compiler, which is included with Visual Studio (which you can download for free from the Microsoft website).
 
Either buy Visual Studio for its MSVC compiler, or freely use mingw (if you then want an IDE, get the CDT plugin for eclipse)

I prefer both of these tools to bloodshed or borland. Of course I also use the GNU version of g++ when on unix or linux.
 
okay thanks a lot to everyone.. excuse my newbieness, but with all that acronyms and crap i didn't get anything. in conclusion, i tried using the system(pause) thing and didnt work, and i found out getchar() which worked.
thanks.
 
sage

Screw the lot of this, they are meant to be run from command line.
And it isn't even hard, and I would highly recommend digital mars compiler. And what in the world is a compilator?
 
Back