Help with displaying text after cin

Hello,

I'm trying to figure out what library/class I would use to display text after the cursor
Example

Header Goes here
1. Do this
2. Do that
Please enter your choice: (blinking cursor here)
Footer Goes here even though the user hasn't entered his choice yet

Thank you for your time
Could you explain what you are trying to do? Most of the time when you need this sort of behavior, it means that you should no longer be using the console.
1
2
3
4
5
6
7
8
9
char choice;
cout << "Hello\n" //Header
cout << "This is the menu\n"
cout << "Press A to do this\n"
cout << "Press B to do that\n"
cout << "Please enter a choice\n";
cin    >> choice;
cout << CurrentDate << "    " << SomethingElse << "     " << AnotherThing\n; //Footer
return 0;


BUT I want
 
cout << CurrentDate << "    " << SomethingElse << "     " << AnotherThing\n;

to run before the user types in their choice

Exactly like this
http://cboard.cprogramming.com/cplusplus-programming/120729-displaying-text-below-user-input-cin.html
Last edited on
Why?
Its for a project for my class, My teacher said it is possible. I'm not asking to be spoonfed but more a point in the right direction to do it
While I won't explain why it is absolutely horrible that your teacher is trying to get you to learn how to do this, I can give some reference material:
http://www.cplusplus.com/forum/general/51271/#msg278744
Ill check it out, thank you
Topic archived. No new replies allowed.