I am trying to use the getline function inside of a function.
I am calling the setMakeModel function in my constructor.
1 2 3 4 5 6
void setMakeModel ()
{
cout << "What is the make and model of your vehical : "<<endl;
getline( cin, makeModel );
};
Every time I run the code it never allows me to enter anything all it does is skip over it. I am trying to set the variable makeModel with the input from the question.