CompuServe Messages

Complex data type

    31-May-90 00:38:32
Sb: #106874-Complex data type
Fm: JEFFREY C. DEGE 76426,211
To: Jason Freund 72007,244
I usually build up complicated data declarations out of typedefs. typedef int ctype[10]; typedef ctype *btype[2]; typedef btype *atype[4]; atype *BIGA[100]; As for referencing an individual int in this mess, you can do it just like you would expect, but normally you end up referring to the defined types. In the main routine you think about atypes. In the functions that you pass atypes you think about btypes, &c. If you end up setting up this complicated a declaration and then have to reference each individual item from every routine, you really need to do some thinking about your data representation. As for the original declaration, Lattice handles it just fine as is.