Menu

Getting Windows XP to Display Output

2002-10-05
2012-09-26
  • Nobody/Anonymous

    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.

     
    • Nobody/Anonymous

      Simple.   You need to make a statement that stop the program before your last WriteLN statement.   Like a ReadLn(some-used-variable)

       
    • Nobody/Anonymous

      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_

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.