Thread: dumb question

  1. #1
    Registered User
    Join Date
    Oct 2007

    dumb question

    I am learing C (used Fortran for many years). I compiled a simple program on a free compiler I got off the internet, the problem is that the output screen automatically closes as soon as the program stops writing to the screen. Fortran does not do this. Is there some type of pause statement I need to put in or is it a compiler issue. The compiler I am using is Miracle C, are there any other good free compulers? Thanks in advance.

  2. #2
    Registered User
    Join Date
    Oct 2006
    see the faq:
    as it says, look for that special run button in your ide, or run the compiled program from a command line. another option, on windows (and windows only) is to use system("pause");. another option is getch() or getchar().

  3. #3
    Cogito Ergo Sum
    Join Date
    Mar 2007
    Sydney, Australia
    For C

    CYGWIN is the best if you are running Windows

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Miracle C is crap compared to, well pretty much everything else.

    Dev-C++ (make sure you get the compiler AND IDE)
    Code::blocks (make sure you get the compiler AND IDE)
    Microsoft Visual Studio Express + platform SDK
    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. very dumb question.
    By Blips in forum C++ Programming
    Replies: 14
    Last Post: 11-08-2005, 09:37 AM
  2. Dumb question
    By dragon2309 in forum C Programming
    Replies: 18
    Last Post: 10-29-2005, 03:27 PM
  3. Alice....
    By Lurker in forum A Brief History of
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  4. Sorry for a dumb question.
    By Vanished in forum C++ Programming
    Replies: 7
    Last Post: 11-23-2002, 12:39 PM
  5. another dumb question - loop not working?
    By Captain Penguin in forum C++ Programming
    Replies: 8
    Last Post: 10-06-2002, 10:15 PM