Checkpoint 8.11.1.
What is the difference between
cin and getline for a string?
-
getlineonly takes the first word of input whilecinreads the entire line until the user hits Return or Enter. -
Try again!
-
cinonly takes the first word of input whilegetlinereads the entire line until the user hits Return or Enter. -
Correct!
-
cinonly takes the first two words of input whilegetlinereads the entire line until there is a space. -
Try again!
