Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- using namespace std;
- void consoane(char s[256])
- {
- char i;
- cin.get(s,255);
- for(i='A';i<='Z';i++)
- if(strchr("AEIOU",i)==NULL && strchr(s,i))
- cout<<i<<" ";
- }
- void litMare(char s[256])
- {
- int i;
- cin.get(s,255);
- for(i=0;i<strlen(s);i++)
- if(s[i]==' ')
- s[i+1]-=32;
- if(s[0]!=' ')
- s[0]-=32;
- cout<<s;
- }
- int main()
- {
- char s[256];
- //consoane(s);
- litMare(s);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement