getline not working properly ? What could be the reasons? [duplicate]
Since you have not posted any code. I am going to take a guess. A common problem while using getline with cin is getline does not ignore leading whitespace characters. If getline is used after cin >>, the getline() sees this newline character as leading whitespace, and it just stops reading any further. How to … Read more