I got strucure
typedef struct
{char *cells;}
Map;
and cells suppose to be pointer to array of rows(in rows are integers on every position). I don't know how to access for example to number on 3. position in 2. row. I have stared with some array[3][3], but I don't know how to connect them with this struct. I tried
Map nextmap;
nextmap.cells[0] = array[0][0];
But I got only first number, which is clear. How can I get to other positions? Thanks in advance. EDIT: renaming the structure .. .
newas the name for your structure is pretty iffy...char *cells;(as you indicated in a comment to an answer) instead of a different declaration forcells? Is the array to which cells will point an actual two-dimensional array (declared with something likechar array[rows][columns];) or a pointer to pointers? Is the number of columns in the array fixed at compile time or stored in a variable?