I've been beating my head against a wall for an hour, wondering why getline was not working for my program. Pretty simple use case:
It would work fine when I typed a single character, but when I pasted in a string, it would NOT read it in - I would get an empty string.Code:getline(cin, mystring) ;
Then, I figured it out. Xcode must have a bug or restriction so that when you paste in a value for an input request in the Console, it ignores it. Ugg.