
Originally Posted by
muppetalert
Because you end execution of the program by returning.
Use system("PAUSE"); to get it to stay... Hacky workaround, you could always open your executable from an already open cmd.
oh yea
ill try that
*

Originally Posted by
david_2222
oh yea

ill try that
Code:
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
cout << "Hello World !!!" << endl; // endl equivale ad un \n
system("PAUSE");
return 0;
} something is wrong, i put the pause after the return bit but still closes on me, i know it says hello world!!! cause i can see it flicker but it wont stay, k um im getting used to visual C++ more and more i use it
dont get angry, im just trying
Bookmarks