1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
struct Item {
int prod_left; // number available
const char *name; // the name
};
// The inventory itself. NULL name indicates last one
Item inventory[] = {
{ 100, "Bottled Water" },
{ 100, "Bottled juice" },
{ 100, "Baked Foods" },
{ 100, "Foiled Foods" },
{ 100, "Medical Supplies" },
{ 100, "Liquor" },
{ 100, "Tetra milk"},
{ 100, "Tetra Chocolate" },
{ 100, "Other Services" },
{ 100, "Tobacco" },
{ 0, NULL}
};
|