I'm using codeBlocks (C) and I want to compare two arrays (the have x numbers). Each array is made of grades (numbers, int) for some students, each array represents a class.
I want to compare them and see if both have the same number of students that have the same grade. For example
[75 58 86 75 98]
[58 75 98 86 75]
fulfill the purpose while
[75 58 86 75 98]
[58 86 98 86 75]
don't because the first class has 75
twice while the second one only has 75
once.
I know how to compare them but I cant check if they fulfill the purpose thanks
for (int i = 0; i < x; i++) {
for(int j=0; j < x; j++){
if ( class1 [i] == class2[j]) continue;
}
}