OK, I'm wondering why system("pause") excecutes before everything else, even if it hasent been written first in the coding.... here's an example:
OK heres what it does:Code:#include <iostream.h> #include <stdlib.h> int main() { cout << "Hello world!"; system("pause"); return 0; }
(system pause here, usually says (Press any key to continue) )
Hello World!
See? It excecutes the system("pause") first....
Is there anyway to stop it... OR another way to pause the program until the user presses a key?
Thanks for your help..