Menu

Windows XP & Compiling

2002-09-15
2012-09-26
  • Nobody/Anonymous

    I am new at C++, but I am using dev-c++ on windows xp, which has c prompt, not dos.  Every time I try to run my program, a console pops up and I try to input my information, for whatever i wrote the program to ask, and the window closes as soon as I hit enter.  How do I fix this?

     
    • Nobody/Anonymous

      Put this in your console App :

      #include <stdlib.h>
      system("PAUSE");

      Put system("PAUSE") in the end of your code.

       

Log in to post a comment.