From: Adam J. <aj...@i-...> - 2007-08-22 00:34:31
|
The flash you see is the win console window opening and closing. You have to stop or pause the program execution to see the output. You can do it as others have said: >> Try using a DOS prompt to execute the same file and see what happens. Or you can use a system call to pause the execution. See your updated code below: #include <stdio.h> #include <stdlib.h> //<== Add this line to your code int main() { printf("Hello World\n"); system("pause"); //<== Add this line to your code return 0; } Please no lectures on the evils of system("pause"). We have been thru that on this list before... Warning: don't use system("pause") in production code..... -Adam Jones |