Delayed cin?

This is a discussion on Delayed cin? within the C++ Programming forums, part of the General Programming Boards category; Is it possible to make input with delay? If I have something like this: Code: void Bill() { int choice; ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    10

    Delayed cin?

    Is it possible to make input with delay?

    If I have something like this:

    Code:
    void Bill()
    {
    int choice;
    cout<<"*******************************************************************************"<<endl;
    cout<<"*  1. Bill  2. Searching bill   3. All bills   4. Change bill  *"<<endl;
    cout<<"*******************************************************************************"<<endl;
    cout<<"*Choice :*;cin>>choice;cout<<                                                   *"<<endl;
    cout<<"*******************************************************************************"<<endl;
    }
    It's only small fraction only to "show" what I'd like to know and accomplish.
    Basically I'd like to print everything out and then give user the choice to fill what he wants.
    What I wouldn't like is to "cout" everything till "cin" gets and then "cout" rest of "graphic".

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    What you want to do is platform specific, because standard C++ with cin and cout does not let you do that. Look up adrianxw's tutorial on the console, I believe that has information on how you can do this kind of stuff, assuming your platform is covered.

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    10
    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. cin problem
    By mikahell in forum C++ Programming
    Replies: 12
    Last Post: 08-22-2006, 11:14 AM
  2. problem with cin
    By markucd in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2006, 12:50 PM
  3. getline(function)??
    By dac in forum C++ Programming
    Replies: 7
    Last Post: 03-10-2006, 11:42 AM
  4. cin not allowing input after first use of function
    By Peter5897 in forum C++ Programming
    Replies: 5
    Last Post: 01-31-2006, 05:29 PM
  5. Overriding Cin with Cout
    By Tainted in forum C++ Programming
    Replies: 5
    Last Post: 10-06-2005, 02:57 PM

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