Why is the getline function the preferred way to read string values into your program instead of the cin object?
What will be an ideal response?
The getline reads until it sees an Enter key, and reads data that includes spaces. The cin object reads until it sees white space or an Enter key. Therefore, if you want to enter “Today is Sunday.”. you should use a getline. If you read that input line using cin, all you would obtain is “Today”.
You might also like to view...
In Windows 8.1, the easiest way to open an app is to use the ________ feature
A) Open B) Search C) Launch D) Apps
The ________ SmartArt graphic type shows steps that repeat continuously
Fill in the blank(s) with correct word
When you change Word options, the changes apply to:
A) the current document only. B) previously saved documents that you open, but not documents that you create. C) all documents saved to SkyDrive. D) all documents, not just the current document.
What is the purpose of a password?
What will be an ideal response?