My problem is that when I compile a C program, the output on the DOS command prompt window on Windows XP does not stay up on the screen. How can I fix this problem ? How can I write C source code and not see my output without it disappearing in a split second off the screen ?
Thank you for your assistance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My problem is that when I compile a C program, the output on the DOS command prompt window on Windows XP does not stay up on the screen. How can I fix this problem ? How can I write C source code and not see my output without it disappearing in a split second off the screen ?
Thank you for your assistance.
Simple. You need to make a statement that stop the program before your last WriteLN statement. Like a ReadLn(some-used-variable)
You may want to try this; here just an example.
#include <stdio.h>
int main()
{
printf("hello for now...");
system("PAUSE");
return 0;
}
j@ck_