Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tring way = "way";
- string firstName;
- string SecondName;
- cout << "Please enter your first name" << endl;
- cin >> firstName;
- cout << "Please enter your second name" << endl;
- cin >> SecondName;
- for(int i = 0; i < firstName.length(); i++)
- {
- firstName[i] = tolower(firstName[i]);
- }
- if(firstName[0] == 'a' || 'e' || 'i' || 'u' || 'o' || 'y')
- {
- firstName += way;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement