Can anyone please help me to get best compiler?
C++ language tutorials are really helpful. But programs are not at all running in my 'Borland's turbo c++ v4.5'
to run those programs everytime I have to make some changes in those programs...
I am new to C++.
Code::Blocks comes with MinGW (which is a Windows port of GCC) as the default compiler. It's also possible to use Code::Blocks with the Visual C++ compiler.
Right now I am using the MSVC 2010.
and I have written this code:
1 2 3 4 5 6 7 8 9 10
// my first program in C++
#include <iostream>
usingnamespace std;
int main ()
{
cout << "Hello World!";
return 0;
}
After the code is written i clicked on the button named "start without debbuging"
but I am not getting the stable output.
the prompter (output window) is getting closed immediately.
@snash's second to last post:
Well, that's because Visual Studio isn't smart enough to keep the window open after the program finishes when it's not in debug mode. Using either debug mode or putting in something to prompt for user input would keep it open.
that's because Visual Studio isn't smart enough to keep the window open after the program finishes when it's not in debug mode
Can you clarify what you mean by "debug mode"? Even in debug configuration, I've never seen VStudio keep the window open, and I would love to know what I'm doing wrong ;)