So my book provided me with a function prototype. void printTable(int rows, int cols, TwoDimArray aTable);
Where the TwoDimArray is typedefint TwoDimArray[NUM_ROWS][NUM_COLUMNS];
The constants for the indices are 15.
When my program tries to call a matrix variable of this type it errors out.
I have tried telling the function the size of the NUM_COLUMNS. I'm getting a little frustrated. Here is what my code looks like at the moment.
// your book gave you this:
void printTable(int rows, int cols, TwoDimArray aTable);
// you are doing this:
void printTable(int rows, int cols, TwoDimArray **aTable);
Why did you make it a pointer to a pointer to a 2D array?
I was attempting to get it to pass several different manners, then forgot to clean up before I posted, but I have it figured out now. I'm an idiot. The error happens at line 22. It isn't necessary. Well the declaration is, but the rows, and cols are not.