hi, i need a program that takes an array of 6 numbers and compares these numbers to a two dimensional array of n columns (user decides a number between 1 and 18) and 6 rows. So i need to check if each of the rows in the 2 dimensional array have matching numbers to the original array....
Hope that makes sense.
So far I have a function that kind of does this but it wont switch to the next row without including the first one so each result includes the result of all the rows before it. So I get..
6 12 18 as a result instead of...
6 6 6
Here's my function....
 void results (int draw[], int entry[][maxsize2], int size)

{

int matches = 0;

for (int h=0; h<size; h++)

{

for (int i=0; i<MAXSIZE; i++)

{

for (int j=0; j<MAXSIZE; j++)

{

if (draw[i] == entry[j][maxsize2])

matches++;

}

}

cout << matches << " ";

}

cout << endl;

}
Any ideas about how to move to the next row?
Thanks