Question About Getline

This is a discussion on Question About Getline within the C++ Programming forums, part of the General Programming Boards category; Hi,
I've been programming some examples out of a book and I've noticed something about getline that's made me curious. ...

Question About Getline

Hi,

I've been programming some examples out of a book and I've noticed something about getline that's made me curious. In the following simple program, you enter a make and model of a car, and then it outputs it.

But say you change the line "cin.getline(make, 19);" to "cin.getline(make, 3);". Then, if you enter something like "ford" or anything longer than that, the program no longer asks you the second question. How come?