+ 4
cin takes a single word. use getline(cin, <variable>)
16th Jan 2022, 10:16 AM
Slick
Slick - 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
How to insert images the right way??
0 Votes
Help me debug programm
1 Votes
Anyone see what's wrong with this code?(Python)
0 Votes
Take input of three numbers and find largest number by using nested if condition.Is it correct??
0 Votes
What's wrong with videos?
0 Votes
"That's Odd..." Problem using c#
1 Votes
In operator confusing example
2 Votes
Why radio input is not working?
0 Votes
Migrate from raw to smart pointer
1 Votes
Can someone explain this program??
0 Votes
Follow us on Linkedin
Check out our facebook
See what we tweet about
Join our instagram
Watch our Youtube
HomeProFAQContactBug Bounty ProgramCareersTerms of UsePrivacy PolicySololearn Mobile
Made with
by  Sololearn | ©2023