I am new to C++. I did the Hello World code in MS visual C++ 2008 ...when I select execute..the compiler execute the program..it supposes to appear a window..it appears..bt a moment its gone!!! I rewrote the code..compiled several times..but still having the same problem...The window suppose to appear until I press any button to continue... Plz someone help me
If open a console and then run the program it should stay open, otherwise it closes upon completion. You can add cin.get(); for it to wait for user input, or system("PAUSE"); if using windows to wait for any key to be presses, but I'm sure that if I say nothing someone will tell you not to use that.
Also, with VS, if you run it with Debug > start without debugging, it should automatically pause