3
ihavePCSD
13d

So, I have a weird issue. I'm trying to finish my homework and the only thing that's stopping me is that for some reason VS is skipping a line of user input code. Can anyone help me understand why?

cout << "Make: ";
cin.getline((*c).make, 32);
//when debugging the the console skips this line of code. Trying to figure out the issue.

cout << "\n\nModel: ";
cin.getline((*c).model, 32);

Comments
  • 5
    I ran into endless problems with `cin`. I do not miss it.
  • 1
    Not a c++ user so excuse me but why are you dereferencing the car object rather than just using the arrow operator?
  • 0
    @AlgoRythm teacher wanted us to do it a certain way
Add Comment