when defining new data types in C, you can do
typedef double BYTE;
so what can later be done
BYTE length;
etc.
I would like to do something like
typedef double[30][30][10] mymatrix;
so what do i do later
mymatrix AA[10];
so I have 10 matrices of type mymatrix, and I can access them through AA [0], AA [1], etc.
Anyway, using the GNU C compiler, I get errors like
error: expected unqualified-id before '[' token
What am I doing wrong or how can I achieve my goal?
thank
source
share