Menu

Is somthing wrong with my dev c++?

Mike
2009-10-11
2012-09-26
  • Mike

    Mike - 2009-10-11

    Hello, I've just started dev c++ but I have a question when I run this code
    the output window only blinks it doesnt stay up:

    // this is a very easy program...but still

    include <iostream>

    using namespace std;
    int main()
    {
    cout << "Game Over" << cout endl;
    }

    Then I compile & run. My book doent say anything about it blinking.

     
  • Mike

    Mike - 2009-10-11

    Wait why it come out like that.. whatever

    include <iostream>

    using namespace std;
    int main()
    {
    cout << "Game Over!" << endl;
    return 0;
    }

     
  • Merak

    Merak - 2009-10-11

    Before

    return 0;

    you need

    system("PAUSE");

    That is assuming you build a console application, ofc

     
  • laxman varada

    laxman varada - 2010-08-16

    hi,

    I've just started dev c++ but I have a question when I run this code the
    output window only blinks it doesnt stay up:

    // this is a very easy program...but still

    include <iostream>

    using namespace std;
    int main()
    regards,
    phe9oxis,
    http://www.guidebuddha.com

     

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.