while(true) { string word; getline(in, word, ' ');
if(!in) break;
char f; if(!word.empty()) f = word.front(); if(f == 'a' || f == 'e' || f == 'i' || f == 'o' || f == 'y' || f == 'u' || f == 'A' || f == 'E' || f == 'I' || f == 'O' || f == 'Y' || f == 'U') vwords.push_back(std::move(word));
Comments
Leave a comment