Be Careful Using std::cin.getline() and std::cin >> var Together
If you provide std::cin.getline() with a third argument?a “stop” character, it ends its input by eating the character and terminating the string. For example: std::cin.getline(str, 100, ‘|’) Without this this