I'm trying to pass an array to a function for use, but it won't compile, it gives me the error:
>Type error in argument 2 to 'getMove'; found 'int' expected 'int *'
It is an int array, and it won't let me pass it. From what I can guess its a pointer thing, but I don't know how to fix it. If the code helps, here it is:
1. void getMove(int move, int space[9]);
2. getMove(move, space[9]);
3. void getMove(move, space[9])
1. is the prototype
2. is a function call in the program
3. is the function start.
All I can guess is I need a pointer to pass it, any help would be greatly appreciated, thanks!