I'm trying to finish this assignment, but I got this error.
"subscripted value is neither array nor pointer"
Here are parts of the code.
typedef enum { BOAT = 178, SEA = 250} Appearance;
typedef struct
{
Appearance appear;
} Square;
typedef struct {
Square ** grid;
int size;
} Board;
The error comes out in here:
for (i = 0; i < size; i++)
for (j = 0; j < size; j++)
printf("%c", ((theBoard[j][i]).grid));