Menu

Newbie Does Dev-C++ work in XP Pro

2003-01-27
2012-09-26
  • Nobody/Anonymous

    I'm brand new to C++, bought the book Sams teach yourself C++,ran the first code Hello World. The Dev-C++ said that it compiled successfully,but when I run it, the C:prompt window only opens for a spilt second & closes...I was wondering if Dev-C++ works with XP Pro...using version 4.01 Thanks for any info...

     
    • Patrick C. Connor Jr.

      Add the line...

      system("PAUSE");

      just before the return 0; in the main function

       
    • Nobody/Anonymous

      #include <iostream>
      #include <cstdlib>//don't think you need this
      using namespace std;

      int main()
      {
        cout<<"RTF\n";
        system("PAUSE");   
        return 0;
      }

       
    • Nobody/Anonymous

      #include <iostream>
      #include <stdlib.h>
      using namespace std
      int main()
      {
      system("ECHO Add text here && PAUSE > NUL");
      return 0;
      }

       

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.