B4Coder
0%
LessonAbout 5 min

Chapter 6 · Lesson 3 of 5

03. Reading a whole line

cin >> stops at the first space. getline(cin, text) reads the whole line, spaces and all: for full names, addresses and sentences.

Opening the lesson…