Thread: I'm a beginner..Please help me

  1. #1
    Futant King

    Cool I'm a beginner..Please help me

    I am a beginner, so I'm sorry if this question seems a bit moronic.

    I am making a small program, and things are going along fine...that is until the program ends. I want my program to stay open, and close only when the "X" button in the corner is clicked. However, my program reaches the end and automatically terminates. The person useing the program has no time to even read the final message! Please help, it would be very much appreciated.

  2. #2
    Registered User
    Join Date
    Apr 2002
    add a getchar() after the message.
    "The most common form of insanity is a combination of disordered passions and disordered intellect with gradations and variations almost infinite."

  3. #3
    Futant King


    Thank you...I'll try that.

  4. #4
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    in msvc++ its _getch(); , in other compilers it might be different. include conio.h

  5. #5
    Registered User DeadArchDown's Avatar
    Join Date
    Apr 2002


    system calls are slow...but in this case it doesn't matter.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please Help Me with this beginner C++ Program!
    By ClearSights in forum C++ Programming
    Replies: 7
    Last Post: 09-24-2008, 10:22 AM
  2. Same old beginner question...
    By Sharmz in forum C Programming
    Replies: 15
    Last Post: 08-04-2008, 11:48 AM
  3. What are some good beginner programs I shouold make?
    By oobootsy1 in forum C# Programming
    Replies: 6
    Last Post: 08-09-2005, 02:02 PM
  4. Windows programming for beginner (Absolute beginner)
    By WDT in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2004, 11:21 AM