hi, i'm looking to pass the array fieldPos[9][50][50] into a function which then changes some of the values of fieldPos[x] (ie want to pass one of 9 possible 50 by 50 maps into the function) and returns the new array.
right now, fieldPos is defined as a global variabe, but i need to change it to a local variable. i've never used pointers, so if i need to use pointers, references would be greatly appreciated.
so, i'm imagining code is something like this...
and thenCode:char fieldPos[9][50][50]; int x=3; for (i=0;i<9; i++){ for (j=0; j<50; j++){ for (k=0; k<50;k++){ fieldPos[i][j][k]='x'; }//k }//j }//i
or something like that ...Code:doSmthng (fieldPos[x]);
but i don't know what the arguments for doSmthng should be or how to pass the array into the function.
any help would be greatly appreciated. thanks
-Sean