Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <iomanip>
- #include <algorithm>
- using namespace std;
- string isvowel(string word)
- {
- string voweled;
- if (word.substr(0,0) = "A")
- voweled = "Woopie";
- else
- voweled = "Nah, bro";
- return voweled;
- }
- int main ()
- {
- string x;
- while (x != "$$")
- {
- cout << "Input?" << endl;
- getline(cin, x);
- cout << isvowel(x);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement