Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.12 KB | None | 0 0
  1. cin >> a;
  2.         znalazlem = 0;
  3.         for (int i = 0; i < a.length(); i++)
  4.         {
  5.             if (((a[i] >= 'a') && (a[i] <= 'z'))  ((a[i] >= 'A') && (a[i] <= 'Z'))  (a[i] == '!')  (a[i] == '@'))
  6.  
  7.                 znalazlem++;
  8.         }
  9.         if (znalazlem == 0)
  10.         {
  11.             stringstream geek(a);
  12.             geek >> x;
  13.             tab[q] = x;
  14.             q++;
  15.         }
  16.     }
  17.     q = 0;
  18.     znalazlem = 0;
  19.     while (q != 5)
  20.     {
  21.         cin >> b;
  22.         znalazlem = 0;
  23.         for (int i = 0; i < b.length(); i++)
  24.         {
  25.             if (((b[i] >= 'a') && (b[i] <= 'z'))  ((b[i] >= 'A') && (b[i] <= 'Z'))  (b[i] == '!')  (b[i] == '@'))
  26.                 znalazlem++;
  27.         }
  28.         if (znalazlem == 0)
  29.         {
  30.             stringstream geek(b);
  31.             geek >> y;
  32.             tab1[q] = y;
  33.             q++;
  34.         }
  35.     }
  36.  
  37.     for (int i = 0; i < 5; i++)
  38.     {
  39.         for (int j = 0; j < 5; j++)
  40.         {
  41.             if (tab[i] == tab1[j])
  42.                 licznik++;
  43.         }
  44.     }
  45.  
  46.     if (licznik == 5)
  47.         cout << "Equal.";
  48.     else
  49.         cout << "Diffrent.";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement