I used the system("pause")
with stdio.h
and it worked without error. When I looked at the stdio functions, system()
is in stdlib. How come it worked, and here is the code?
#include <stdio.h>
int main() {
printf("Hello World\n" );
system("pause");
return 0;
}
[link](http://www.gidnetwork.com/b-61.html)
Calling system in windows is basically the same as running cmd.exe and typing pause. – k3oy Jan 31 '12 at 16:07