123456789
#include <algorithm> #include <cctype> #include <string> //... std::string name; do { std::cout << "Enter your name: "; std::cin >> name; while(not std::all_of(name.begin(), name.end(), ::isalpha));