class Item {
private:
string name;
int price;
Category *category;
public:
Item( ... );
~Item();
//code
};
class Order {
private:
static int number;
Customer *const customer;
map<Item*, int> *items;
public:
Order( ... );
~Order();
//code
};
items = new map<Item*, int>;
items->insert(std::pair<Item*, int>(item, 1));