I need to create an array of 99 elements, each element being a struct i create earlier. Let me show you how I have tried this thus far.
char name, description;
int value1, value2;
declare inventory = new array;
//I setup the inventory variables here
for(int loop = 1; loop < 100; loop++)
inventory[loop] = item;
Now everything seems OK, but it gives me a declaration error for 'inventory'. I am declaring it the way I am showed in my Borland Help files, but once again, they seem to be WRONG (big surprise, NOT). Can somebody show me how to declare an array properly in Win32? Thanks in advance.
0 · ·