Zebra0.com

cpp stringsHello with getline

Hello with getline

In this video your will learn why you might need geline instead of cin with strings.


Text of video

After watching this video you should experiment with reading in two different strings with cin. Observe what happens when there is a space in one of the strings.

Code: getline

NEXT: The substr method with drill