If the user is to input text - alphabetic or numeric, when is it advantageous to use getline rather than cin? It's obviously easier to code something like
cin >> favoriteVacationSpot; than something like
getline (cin, favoriteVacatioSpot); , so I don't see the advantage of using getline. If anyone can elaborate somewhat on the differences it would be greatly appreciated.