I am writing a program for a lottery array function thing. I am getting this error in one of my functions and I have no idea what I am doing wrong. Please help.
void printWinners( int winArray[], int userArray[], int numValues )
{
double prizeArray[6]={0.00,1.00,5.00,10.00,20.00,25.00};
int matches=0,i,j;
cout << "The winning numbers are ";
for (i=0, i < numValues, i++ ) //this is where i am getting the error
{
cout << winArray[i];
}
for (i=0, i < MAX_NUM, i++)
{
for (j=0, j < MAX_NUM , j++)
{
if ( winArray[i] == userArray[j])
{
match++;
}
}
}
cout << "You matched " << match << "numbers. You win " << prizeArray[match];
}