B4Coder
0%
LessonAbout 7 min

Chapter 2 · Lesson 5 of 5

05. Reading input with cin

cin >> reads a number or a word the user types into a variable. getline reads a whole line, spaces and all.

Opening the lesson…