SHARE
TWEET

Untitled

a guest Dec 11th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void Cons(char str1[], char str3[])
  2. {
  3.     char alph[MAX] = { 'b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','y','z','\0' }; //массив всех согласных
  4.  
  5.     int k = 0;
  6.     int count = 0;
  7.  
  8.     for (int j = 0; alph[j]; j++)
  9.     {
  10.         for (int i = 0; str1[i]; i++)
  11.         {
  12.             if (str1[i] == alph[j])
  13.             {
  14.                 count++;
  15.             }
  16.         }
  17.        
  18.         if (count == 0)
  19.         {
  20.             str3[k] = alph[j];
  21.             k++;
  22.         }
  23.         count = 0;
  24.     }
  25.  
  26.     str3[k] = '\0';
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top