Thread: Simple question...

  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    46

    Simple question...

    I'm new to C++, trying to learn on my own.

    Is there a way to prompt a user to press enter to continue with a program.

    For example:

    cout << "To continue please hit ENTER."
    cin >> ???????????

    I know this will be simple to some, just getting started.

  2. #2
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    How to I get my program to wait for a keypress?

    Just read down to the C++ implementation.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  3. #3
    Registered User
    Join Date
    Jun 2011
    Posts
    46
    Thanks!

  4. #4
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    No problem. Since you are just starting out you might want to take a look at the FAQ. It will most likely help you out.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hi, simple question!
    By Coder87C in forum Networking/Device Communication
    Replies: 1
    Last Post: 07-19-2005, 10:13 PM
  2. simple simple design question
    By Chaplin27 in forum C++ Programming
    Replies: 6
    Last Post: 05-31-2005, 11:33 PM
  3. Very simple question
    By ZephidsEmbrace in forum C++ Programming
    Replies: 6
    Last Post: 07-27-2003, 02:21 AM
  4. a simple question
    By DramaKing in forum C Programming
    Replies: 5
    Last Post: 01-20-2002, 12:18 PM
  5. A Simple Question
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 10-26-2001, 05:23 PM