v3 ???, multi dimentional arrays

Discuss PocketC for CE (including Desktop Edition)

Postby brendan on Thu Apr 26, 2001 9:18 pm

does anyone know how I can get a multi-dimentional arrays working, easyly in v3. I've tried the following, and failed ???, any ideas, I really, really need to use mda's, whys does int frd[5][5], not work ?, surly mda's should have be implemented by now, they are fundemental to programming:

struct screenx
int x[30];

screenx y[30];

int z
z = y[5].x[5];

-thanks all.
Posts: 114
Joined: Tue Feb 20, 2001 2:28 am

Postby wolfgang on Thu Apr 26, 2001 10:33 pm


I have a complete&tested implementation (source code!) for multi-dimensional arrays on my webpage:


Go to the "Resources" section. The source code also contains a manual on its usage. Declaring the arrays is a little different than "normal" C, but using them works just the same (or even better, because you can just pass the base pointer to a function and not at all worry about the dimensions).

Composing music on the PocketPC! - http://www.pdamusician.com
Posts: 281
Joined: Tue Dec 12, 2000 4:22 am
Location: USA

Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 1 guest