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.
struct invenvars
{
char name[64], description[64];
int value1, value2;
}
invenvars item;
declare inventory = new array[99];
//I setup the inventory variables here
...
//End setup
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.
-Seph