Hi,
I just started programming three days ago and I am having a little problem. When I run a program I have made that doesnt require any input (like Hello World!), the DOS window will open and close with a second. I have found the only way to prevent this is to use this bit of code...
Help?Code:#include <iostream> unsigned short t; int main () { std::cout<<"Press any key followed by enter to exit\n"; std::cin >> t; return 0; }