I have a task to disply user entered values in a single line while using cin and cout objects.
Any one can help me to understand this??
My question is when a user enter a value in any veriable, cursor sholud not move to the next line...
Please help if anybody knows
Robin_3
0
Newbie Poster
Recommended Answers
Jump to PostWhere should the cursor move to? Can you show us how the input should be formated?
Jump to PostYou can pull everything with a single cin call, provided the two items are separated by whitespace during input:
cin >> a >> b;
Adjust your prompts to that and it'll be closer to what you want. However, if you want free form control over the …
All 8 Replies
NathanOliver
429
Veteran Poster
Featured Poster
Robin_3
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Robin_3
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Robin_3
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.