I'm a beginner..Please help me

This is a discussion on I'm a beginner..Please help me within the C++ Programming forums, part of the General Programming Boards category; I am a beginner, so I'm sorry if this question seems a bit moronic. I am making a small program, ...

  1. #1
    Futant King
    Guest

    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
    Posts
    139
    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
    Guest

    thanks

    Thank you...I'll try that.

  4. #4
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    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
    Posts
    28
    #include<stdlib.h>


    system("pause");


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

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, 11:22 AM
  2. Same old beginner question...
    By Sharmz in forum C Programming
    Replies: 15
    Last Post: 08-04-2008, 12:48 PM
  3. What are some good beginner programs I shouold make?
    By oobootsy1 in forum C# Programming
    Replies: 6
    Last Post: 08-09-2005, 03: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21