• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 4
I think you want std::getline() And maybe see std::cin.ignore() http://www.cplusplus.com/reference/string/string/getline/ http://www.cplusplus.com/reference/istream/istream/ignore/ https://www.google.com/amp/s/www.geeksforgeeks.org/clearing-the-input-buffer-in-cc/amp/
26th May 2020, 7:50 AM
ChaoticDawg
ChaoticDawg - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
About sololearn
0 Votes
HTML
1 Votes
For Mobile app
0 Votes
What’s the One Thing That Helped You Learn Coding Faster?
1 Votes
Answer please
0 Votes
Functions in python
0 Votes
I need advice
0 Votes
I need advice
0 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
Why this code fails even without data race
0 Votes