Were given the header file (which only contains the function prototype) and the object file with the defenition to a function that prompts the user to enter the filename (a file of only integer numbers), to which the function will then store the integers into an array.
the header file also has 2 constants defined: ROWS = 9, COLS = 9.
The function prototype is:
void LoadPuzzle(int original[ROWS][COLS], int solution[ROWS][COLS], int rows, int cols);
with this I get the following warning: "warning: passing arg1 of 'LoadPuzzle' makes pointer from integer without a cast"
LoadPuzzle( original[ROWS][COLS], solution[ROWS][COLS], ROWS, COLS);
messing around with the & and * I still didn't have any luck. The program/function will run but as soon as I enter in the filename with all the integers I get a segmentation error. I know it doesn't help not being able to see the definition for LoadPuzzle(), the header and object file for that function is given by the professor, others have made it work so I know 100% that the function is written correctly without any errors. Any help would be greatly appreciated! Thanks!