Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cstring>
  4. using namespace std;
  5. char s[250];
  6. int s1(chars[])
  7. {
  8. int t=0,i;
  9. char voc[]="aeiou";
  10. for(i=0;i<strlen(s);i++)
  11. if(strchr(voc,s[i])==NULL) t++;
  12. return t;
  13. }
  14. void s2(char s[])
  15. {
  16. char s1[50];
  17. int i,j;
  18. s1[0]=0,j=0;
  19. char voc[]="aeiou";
  20. for(i=0;i<strlen(s);i++)
  21. if(strchr(voc,s[i])==NULL)
  22. {
  23. strncat(s1,s+i,1);
  24. strncat(s1,s+i,1);
  25. }
  26. else strncat(s1,s+i,1);
  27. strcat(s1,"\n");
  28. strcpy(s,s1);
  29. }
  30. int main()
  31. {
  32.  
  33. return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement