I was wondering...in C++, with my editor, the screen will stay if I add
system("PAUSE");
Otherwise, the console would just flash on the screen.
What is the code for C? I can't seem to find it anywhere. In my book, no one even mentions it.
"What is the code for C?"
Same as for C++ (assuming you want to continue to use PAUSE) - just make sure that you
to provide access to the "system" function.
Wayne
cool, ya, i didn't know that I needed that to use the System function in C thanx
you can shrink your program: replace system("pause") by while(1) and skip the inclusion ;
... and what your process consume 100% of your CPU! ;-)
duh... watch
Log in to post a comment.
I was wondering...in C++, with my editor, the screen will stay if I add
system("PAUSE");
Otherwise, the console would just flash on the screen.
What is the code for C? I can't seem to find it anywhere. In my book, no one even mentions it.
"What is the code for C?"
Same as for C++ (assuming you want to continue to use PAUSE) - just make sure that you
include<stdlib.h>
to provide access to the "system" function.
Wayne
cool, ya, i didn't know that I needed that to use the System function in C
thanx
you can shrink your program: replace system("pause") by while(1) and skip the inclusion ;
... and what your process consume 100% of your CPU! ;-)
duh... watch