Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int check(int a[], int b[])
- {
- int a_size = (sizeof(a)/sizeof(*a));
- int b_size = (sizeof(b)/sizeof(*b));
- int foundSwitch = 0;
- for (int i = 0; i < a_size; i++)
- {
- for (int j = 0; j < b_size; j++)
- {
- if (a[i] == b[j])
- {
- cout << a[i] << " vs " << b[j] << endl;
- foundSwitch = 1;
- }
- }
- if (!foundSwitch) return 0;
- else continue;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement