so i have this structure:
// Structure used to define a point (x,y) in the grid.
typedef struct
{
int x, y;
} Point;
and this function
Sequence getSequence(int grid[][MAXCOLS], Point startPos)
{
// Create an empty sequence
Sequence emptySeq;
emptySeq.size = 0;
// Use the empty sequence to start the recursive function
return generateSeq(grid, startPos, emptySeq);
}
i do not know the position where the sequence begins. so i have too call on the getSequence function 16 times in main, so that you can pass each of the 16 grid positions to it as possible starting positions.
i've tried this but it didnt work.
getSequence(grid, x.0, y.0 );
can someone please show me how to call on the getSequence in main. Im new to programing
Thanks