Code: Select all
#include <stdio.h>
int main()
{
printf("Hello World.\n\n");
printf("Press Any Key to Continue......\n");
getchar();
return 0;
}
Inside that console window pressing a key then results in this output capture inside Zeus:
Code: Select all
Hello World.
Press Any Key to Continue......
To fix this behaviour make the following code change:
Code: Select all
#include <stdio.h>
int main()
{
// stop stdout from being buffered
setbuf(stdout, NULL);
printf("Hello World.\n\n");
printf("Press Any Key to Continue......\n");
getchar();
return 0;
}