Bloodshed DevC++ ide....

Sharky Forums


Results 1 to 7 of 7

Thread: Bloodshed DevC++ ide....

  1. #1
    Reef Shark
    Join Date
    Nov 2004
    Posts
    352

    Bloodshed DevC++ ide....

    i just starting using this ide, and i noticed that when i run programs the dialog box appears for a split second and then disappears. Is there a way to keep it there to ensure my program is producing the correct output?

  2. #2
    NullPointerException rock's Avatar
    Join Date
    Sep 2000
    Location
    York, PA
    Posts
    6,203
    This question just came up in another thread for Visual Studio .NET 2003 (http://www.sharkyforums.com/showthread.php?t=274022). Maybe the replies there apply to DevC++? I haven't used anything but Visual Studio for several years now.

    Open Source is free like a puppy is free.

    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.

    Understanding Evolution

  3. #3
    Reef Shark
    Join Date
    Nov 2004
    Posts
    352
    man still no response

  4. #4
    Hammerhead Shark
    Join Date
    Mar 2001
    Location
    Littleton, CO
    Posts
    2,704
    Quote Originally Posted by CPUmelter
    man still no response

    Umm....there's a response right above your message....

    You need to pause the code or run it from within a persistent command prompt window to see what's happening. If it just runs successfully it'll close the window immediately afterwards.
    Nick_B
    Currently running Ubuntu and Windows 7.

  5. #5
    Reef Shark
    Join Date
    Nov 2004
    Posts
    352
    it was the "pause" command that someone mentioned, just in case anyone runs into the same problem.

  6. #6
    Mako Shark Mancora's Avatar
    Join Date
    Jun 2001
    Location
    The other side of where the fishes swim
    Posts
    4,313
    i believe its
    system("pause)";

    Btw, I think youd find yourself much happier working with something like the Visual Studio C++ express (which is free right now due to it being in beta) than Dev C++, Dev C++ is a steaming pile of crap IMHO.
    Last edited by Mancora; 09-19-2005 at 03:42 AM.

  7. #7
    Really Cold Shark eshbach's Avatar
    Join Date
    May 2003
    Location
    San Luis Obispo, CA
    Posts
    5,740
    system("pause"); works, but it's not a great way to do it since you're calling a pause.exe that happens to come with most C++ environments...

    a better way to halt execution after your code has finihsed is with a little loop like:

    int c;
    do{
    cout<<"Press Enter To End..."<<endl;
    c = getchar();
    if(c == EOF) break;
    } while(c != '\n');

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •