Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- #include<fstream>
- using namespace std;
- ifstream fin("bac.txt");
- char s[15],v[]="aeiou";
- int main()
- {
- int i,ok=1;
- cin.getline(s,15);
- for(i=0;i<strlen(s);i++)
- {
- if(strchr(v,s[i])==0)
- {
- strcpy(s+i,s+i+1);
- i--;
- }
- }
- for(i=0;i<strlen(s)-1;i++)
- {
- if(s[i]>=s[i+1])
- {
- ok=0;
- break;
- }
- }
- if(ok!=0) cout<<"corect";
- else cout<<"incorect";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement