Advertisement
ninepintcoggie

Untitled

Feb 27th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <iomanip>
  4. #include <algorithm>
  5.  
  6. using namespace std;
  7.  
  8. string isvowel(string word)
  9. {
  10. string voweled;
  11. if (word.substr(0,0) = "A")
  12. voweled = "Woopie";
  13. else
  14. voweled = "Nah, bro";
  15. return voweled;
  16. }
  17.  
  18. int main ()
  19. {
  20. string x;
  21. while (x != "$$")
  22. {
  23. cout << "Input?" << endl;
  24. getline(cin, x);
  25. cout << isvowel(x);
  26. }
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement