Advertisement
Five_NT

[C++][BAC][V79 S2 P5]

Jan 27th, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4.  
  5. char voc[]="aeiouAEIOU", cuv[256];
  6. void citire()
  7. {
  8.     cout << "Cuvant: ";
  9.     cin.get(cuv, 255);
  10. }
  11. int main()
  12. {
  13.     citire();
  14.     for(int i=0; i<strlen(cuv); i++)
  15.         if(strchr(voc, cuv[i])) cout << cuv[i] << "*";
  16.         else cout << cuv[i];
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement