comparing the entries of two arrays
It depends what sort of comparison you want to do.  If you want to see if note[x] == learn[x] then that's what you do.

If you want to see if all the notes match all of learn then you'll need to put the comparison in a loop.

for (int n = 0; n &lt; MAX_NOTE &amp;&amp; note[n] == learn[n]; ++n)
{
    // Empty loop
}


If you want to see if the first n notes match the current note and the proceeding n notes then its a bit more complex, but its just a loop.

int n = 0;
for (int l = currentPos;
(l &gt; (currentPos - 10)) &amp;&amp; (note[n] == learn[l]);
 l--, n++)
{
    // Empty loop
}


If it is something else you want, please can you try and describe it in idiot proof terms so I can understand it.