• 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
Help me😭😭😭😭😭
0 Votes
Python for beginners
0 Votes
Hi guys someone to help write code to which I'll use to hack a WiFi
0 Votes
How its output is 2 but not 3
0 Votes
Python
0 Votes
dictionary
0 Votes
Audio trouble
0 Votes
SQL computer program
0 Votes
Hi
0 Votes
Stady html
0 Votes