Utility function for cin
#include <iostream> #include <cctype> using namespace std; istream &findalpha(istream &stream) { char ch; do { stream.get(ch); } while(!isalpha(ch)); return stream; } int main() { char str[80]; cin >> findalpha >> str; cout << str << '\n'; return 0; }