i would suggest you creata a pointer inside the struct...
Code:
#include <iostream>
#include <cctype>
using namespace std;
struct inventory_items
{
int code,quantity,reorder_level;
char name[20], item[3];
double price;
};
int main()
{
inventory_items *record;
int num=100; \\ this can be accepted fro the user..
record=new inventory_items[num]; \\will create an array of 100
return 0;
}
But make sure you clear up the memory by using delete..
edited
--------
ohh boy.. i thought i was the first to answer this and 2 guys beat me to it..