Hello, this is my first time using getline() to read in a string, I normally just use Cin, but that doesn't work if there's a space. The issue I'm having is that it will only ask for the name of the first player. After that, it will ask for the age of players 1-5, but their names are just skipped over and left as a blank line.
I am not very experienced, but from my research I gathered that it has something to do with a conflict between cin and getline. It seems like something is being left in the buffer, or stream, I don't have a clear grasp of what that means and how to fix it.
I would really appreciate if someone could point me in the right direction, all of the resources I've found explain it in a very advanced way.