Thread: Every time I press enter, prompt closes

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    2

    Every time I press enter, prompt closes

    Hello, I'm pretty new to C, and I have one quick question. I've recently looked at the age test program, written it, and compiled it. When I put in a number and press enter, the prompt closes. I have Dev-C++, and Windows XP. Is there a command in C that's similar to the ignore command in C++? Or is there a specific command in my compiler to keep the prompt onscreen? Thanks!

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User
    Join Date
    Nov 2005
    Posts
    2
    Thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. input function without a need to press Enter?
    By chao06 in forum C Programming
    Replies: 1
    Last Post: 06-19-2009, 03:18 PM
  2. I apologize. Good bye.
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 05-03-2002, 06:51 PM
  3. I need help badly
    By taz_jiggy in forum C++ Programming
    Replies: 4
    Last Post: 04-23-2002, 09:36 PM
  4. Is this really true or it's just science fiction?
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 145
    Last Post: 04-09-2002, 06:17 PM
  5. Dos Window closes after I press enter
    By ProgrammingDlux in forum C++ Programming
    Replies: 4
    Last Post: 01-24-2002, 12:13 PM