Understand C++ getline() for Better Input Handling

Understand C++ getline() for Better Input Handling