Advertisement
iasmina_sarac

Untitled

Nov 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4. int main()
  5. {
  6. char s[256];
  7. cin.getline(s, 256);
  8. char * p = strtok(s , " ");
  9. while(p) { bool ok = true;
  10. for(int i = 0 ; p[i] ; i ++)
  11. if( ! strchr("aeiou" , p[i]) )
  12. ok = false; if(ok)
  13. cout << p << endl;
  14. p = strtok( NULL , " ");
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement