Hi Everyone,
I have a program that takes data in a two dimensional array, performs simple calculations, and then writes the data to a file. When I call the function that calculates and writes, I get an error on the two dimensional array stating: "argument of type 'int' is incompatible with parameter of type 'int(*)[5]'." .I am not sure why this suddenly changed to italics....ok but I am not sure why this error is happening.
//Call writing function
storeProportions(output, dropsOf[3][4], totals, numFailed); //located in main
//Function prototype
void storeProportions(ofstream output, int values[][NUM_COMPONENTS], int totals, int numRows);
//2d array in main
int dropsOf[numFailed][NUM_COMPONENTS] = {{3, 6, 2, 0, 5},
{4, 0, 0, 5, 3},
{0, 0, 0, 0, 0},
{2, 1, 0, 0, 2}};