Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Creating a specific array...
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.