Without seeing the code, it's impossible to tell you what is happening. But, if I had to hazard a guess you are probably doing something like:
In which case the program will print Hello World to the console and exit, closing the window. Using the getchar() or getch() functions should pause the program until you press a key.Code:void main() { printf("Hello World"); }
Another thought: Running from the command prompt (cmd.exe) will run the program and leave the output on the screen.


Reply With Quote