How do I go about checking the user input that was stored into an std::string
to be valid such that it should only contain all letters, no numbers or symbols?
std::string name;
std::cout << "Hello, enter your name:\n";
std::cin >> name;
//check if the name was entered correctly after user input
Should I be using regex? If so, how should I be using it effectively?