Is it possible to define a custom type that represents a multi-dimensional array of some arbitrary type?
Perhaps an example will help.
The compiler I'm using (Xcode 3.1) issues an error message on all 4 of the typedef statements.
Perhaps an example will help.
Code:
/* testing.h */
/* constants */
#define ARRAY_SIZE 10
/* custom types */
typedef unsigned char byte;
typedef byte ARRAYONE[ARRAY_SIZE][ARRAY_SIZE]; /* doesn't work! */
typedef byte[ARRAY_SIZE][ARRAY_SIZE] ARRAYTWO; /* also doesn't work! */
typedef byte ARRAYTHREEROW[ARRAY_SIZE]; /* doesn't work either */
typedef ARRAYTHREEROW ARRAYTHREE[ARRAY_SIZE]; /* again fails to work */
The compiler I'm using (Xcode 3.1) issues an error message on all 4 of the typedef statements.