Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. tring way = "way";
  2.     string firstName;
  3.     string SecondName;
  4.     cout << "Please enter your first name" << endl;
  5.     cin >> firstName;
  6.     cout << "Please enter your second name" << endl;
  7.     cin >> SecondName;
  8.     for(int i = 0; i < firstName.length(); i++)
  9.     {
  10.         firstName[i] = tolower(firstName[i]);
  11.     }
  12.     if(firstName[0] == 'a' || 'e' || 'i' || 'u' || 'o' || 'y')
  13.     {
  14.         firstName += way;
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement