#include #include using namespace std; int main() { string alphabet = "abcdefghijklmnopqrstuvwxyz"; string voyelles = "uaoie"; string mix = "acdecdicdocducd"; cout << alphabet.find('e') << endl; cout << alphabet.at(alphabet.find_first_of(voyelles)) << endl; cout << alphabet.at(alphabet.find_last_of(voyelles)) << endl; cout << alphabet.at(alphabet.find_first_not_of(voyelles)) << endl; cout << alphabet.at(alphabet.find_last_not_of(voyelles)) << endl; cout << mix.find("cd") << endl; cout << mix.rfind("cd") << endl; cout << mix.find("cd",mix.find("cd")+1) << endl; string s = "C'est Toto le plus fort"; s.replace(s.find("Toto"), 4, "Xavier"); cout << s << endl; string s1 = s.substr(21, 4); cout << s1 << endl; return 0; }