Structure string is invisible

Nov 24, 2014 at 12:12am
Why is it that when i use a getline command to input a string for a structure it shows up as nothing? But, when I use a normal cin command, everything is all perfect and displays like it should?
Last edited on Nov 24, 2014 at 1:56am
Nov 24, 2014 at 2:09am
You probably have an extra newline in the input stream. Try adding a std::cin.ignore() statement before the getline.
Nov 24, 2014 at 2:14am
Will do.
Nov 24, 2014 at 2:20am
It worked. Thank you very much.
Topic archived. No new replies allowed.