I just started to use VS.NET to write some C++ and when i build my project (Win 32 Console Application) and run it it just turns off right away. This is not what VS 6 did. There was a prompt telling you to "press any key to continue".
This is what i see after i run the program.
"'2_21.exe': Loaded 'C:\Documents and Settings\Neil\My Documents\Visual Studio Projects\2_21\Debug\2_21.exe', Symbols loaded.
'2_21.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'2_21.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
The program ' 2_21.exe: Native' has exited with code 0 (0x0)."
Can anyone tell me what im doing wrong here?
This is my test program thats not running:
for(i = 0; i < 10; i++)
cout << i;
Visual Studio 6
Visual C++ automatically inputs system("PAUSE"); at the end of the program before the return 0;
Ah ok, so what is the command to stop it right before "return 0;"? I guess i can just use cin but is there a proper way of doing this?
Damn i've done too much PHP lately i can't remember anything about C++ :(
Ok sweet, thanks, now theres no stopping me ;)