Yet another hint.
You have to get rid of a remaining '\n' from a previous iteration before using cin.get().