Advertisement
SelinD

68

Jun 28th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstring>
  3. #include<fstream>
  4. using namespace std;
  5. ifstream fin("bac.txt");
  6. char s[15],v[]="aeiou";
  7. int main()
  8. {
  9. int i,ok=1;
  10. cin.getline(s,15);
  11. for(i=0;i<strlen(s);i++)
  12. {
  13. if(strchr(v,s[i])==0)
  14. {
  15. strcpy(s+i,s+i+1);
  16. i--;
  17. }
  18. }
  19. for(i=0;i<strlen(s)-1;i++)
  20. {
  21. if(s[i]>=s[i+1])
  22. {
  23. ok=0;
  24. break;
  25. }
  26. }
  27.  
  28. if(ok!=0) cout<<"corect";
  29. else cout<<"incorect";
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement