Thread: Dev C++ compiler question

  1. #1
    Registered User
    Join Date
    Sep 2008

    Dev C++ compiler question

    I am trying to compile a program I wrote for a class in DevC++ 4, but when I compile the code, the console window flashes across the screen, but disappears almost instantely, so I can't view the output. Did I miss a setting when I went to compile or is there another issue here?

  2. #2
    Registered User
    Join Date
    Oct 2007
    The window closes as soon as you return from main. One way to fix this would be calling getchar before returning.


  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dev C++ compiler question
    By exluddite in forum C++ Programming
    Replies: 1
    Last Post: 10-16-2004, 09:31 PM
  2. Compiler Question.
    By RealityFusion in forum C++ Programming
    Replies: 2
    Last Post: 07-20-2004, 07:52 AM
  3. C/C++ Compiler Question
    By Unregistered in forum C++ Programming
    Replies: 11
    Last Post: 07-09-2002, 02:09 AM
  4. newbie question about using windows app in Dev C++
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 06-09-2002, 10:50 PM
  5. Question: Which Compiler????
    By MaBo in forum C Programming
    Replies: 5
    Last Post: 06-04-2002, 11:57 AM