#include <iostream>
#include <string>
#include <cctype>
bool is_vowel( char c )
{
// use a simplistic definition of vowel
// and assume that the language is English or a dialect of English
static std::string vowels = "aeiouAEIOU" ;
// http://en.cppreference.com/w/cpp/string/basic_string/find (4)
return vowels.find(c) != std::string::npos ;
}
int main()
{
// Input a string
std::string str ;
std::cout << " enter a string: " ;
// http://en.cppreference.com/w/cpp/string/basic_string/getline
std::getline( std::cin, str ) ;
std::cout << str << '\n' ;
// change lower case vowels to upper case
// http://www.stroustrup.com/C++11FAQ.html#forfor( char& c : str ) if( is_vowel(c) ) c = std::toupper(c) ;
std::cout << "modified string: " << str << '\n' ;
}