Advertisement
Anna3O0

Caractere Fisa 6

Nov 22nd, 2020 (edited)
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3.  
  4. using namespace std;
  5.  
  6. void consoane(char s[256])
  7. {
  8.     char i;
  9.     cin.get(s,255);
  10.     for(i='A';i<='Z';i++)
  11.         if(strchr("AEIOU",i)==NULL && strchr(s,i))
  12.             cout<<i<<" ";
  13.  
  14. }
  15. void litMare(char s[256])
  16. {
  17.     int i;
  18.     cin.get(s,255);
  19.     for(i=0;i<strlen(s);i++)
  20.         if(s[i]==' ')
  21.             s[i+1]-=32;
  22.     if(s[0]!=' ')
  23.         s[0]-=32;
  24.     cout<<s;
  25. }
  26. int main()
  27. {
  28.     char s[256];
  29.     //consoane(s);
  30.     litMare(s);
  31.     return 0;
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement