When should std::cin.getline() be used? What does it differ from std::cin?
std::cin.getline()
std::cin
In case with char*, std::cin.getline getting line, instead of std::cin getting first word.
std::cin.getline