C++ Compiling?

TopGun

Gawd
Joined
Jan 22, 2005
Messages
766
Ive got a problem / question , Im getting into c++ and decided to read some tutorials
and the one that i was trying used this source code:

// my second program in C++

#include <iostream>

using namespace std;

int main ()
{
cout << "Hello World! ";
cout << "I'm a C++ program";
return 0;
}

but when i try to run the exe it compiled it popups and quikcly dissapears
so whats the prob?
 
You could also use cin for a prompt to press any key to quit and it'll stay on the screen untill any key is pressed or closed.
 
Back
Top