Does anyone have any examples of a c++ program that uses recursion to find the longest increasing sequence from a grid in a file. Like
2 4 6 8
10 12 14 16
18 20 22 24
I have to use a structure named Point and a structure named Sequence.
const int MAXROWS = 4;
const int MAXCOLS = 4;
const int MAXFILENAME = 255;
// Structure used to define a point (x,y) in the grid.
typedef struct
{
int x, y;
} Point;
// Structure used to store a partially filled array, consisting of an
// array of integers and it's used size (number of filled positions).
typedef struct
{
int list[MAXROWS * MAXCOLS];
int size;
} Sequence;