#include <iostream>
#include <cctype>
using namespace std;

struct inventory_items
{
int code,quantity,reorder_level;
char name[20], item[3];
double price;
};

inventory_items record[2000];

Question: What should I do to allow the user to enter the size of the array for inventory_items record himself instead of me specifying the size? Thanks!