Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cin >> a;
- znalazlem = 0;
- for (int i = 0; i < a.length(); i++)
- {
- if (((a[i] >= 'a') && (a[i] <= 'z')) ((a[i] >= 'A') && (a[i] <= 'Z')) (a[i] == '!') (a[i] == '@'))
- znalazlem++;
- }
- if (znalazlem == 0)
- {
- stringstream geek(a);
- geek >> x;
- tab[q] = x;
- q++;
- }
- }
- q = 0;
- znalazlem = 0;
- while (q != 5)
- {
- cin >> b;
- znalazlem = 0;
- for (int i = 0; i < b.length(); i++)
- {
- if (((b[i] >= 'a') && (b[i] <= 'z')) ((b[i] >= 'A') && (b[i] <= 'Z')) (b[i] == '!') (b[i] == '@'))
- znalazlem++;
- }
- if (znalazlem == 0)
- {
- stringstream geek(b);
- geek >> y;
- tab1[q] = y;
- q++;
- }
- }
- for (int i = 0; i < 5; i++)
- {
- for (int j = 0; j < 5; j++)
- {
- if (tab[i] == tab1[j])
- licznik++;
- }
- }
- if (licznik == 5)
- cout << "Equal.";
- else
- cout << "Diffrent.";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement