Dev C++ question

Starr

Daemon Poster
Messages
926
Ok, so do you know how when you use Microsoft Visual Studio it has "Start with debugging" and "Start without debugging?" Start with debugging runs through the code and you don't get to see the results. For example if you had the program say Hello world! the console would just flicker and the program would close. So you would use "Start without Debugging" because then it would tell you to press any key to continue. So you can see the results.

My question is: How do you do that in Dev C++ without using a loop? Because when I run the program it just flickers and closes and it doesn't show me the results.
 
That's the one thing that's making me consider dropping Dev-C++ and turning to the Evil Empire of Redmond (I've got VC++6, but I'll get another one).

The debugger in Dev-C++ is completely lame. It does actually nothing, I don't even know why it's in the IDE. The Microsoft one works.
 
#include <iostream>
#include <cstdlib> // used for system ("pause");

using namespace std;

int main ()
{
cout << "Hello World";
system ("pause"); // keeps it from flicking by

return (0);
}
 
Thank you RewtGuy. I have to turn my schools tablet in for the summer so no Visual Studio for me :(.
 
Back
Top Bottom