BIG PROBLEM!!!!!!!!!!!

Hallo world
I program in Microsoft visual c++, I program only for school projects nothing more than that. But when i debug a project, the win32 window comes out i write something that my project it's about and then i press enter it shows me the results but it closes right away and i can't see the result. Did some one had a similar experience ? help
Either run it without debugging or run it from the command line.
closed account (ETAkoG1T)
Hey, this is a very common thing, you can see the beginner forum there is a thread there.

Basically before the
return 0; statement put in a cin.get();
so it would look something like this:

1
2
3
4
5
6
7
8
#include <iostream>
using namespace std;

int main();
{
cout << "Hello World!";
cin.get();
}


What this does is basically wait for input :)
Topic archived. No new replies allowed.