P
pkirk25
// get the item, profession and its mats
int get_bill_of_materials(map<string, string> &mats_map);
map<string, string> crafted_items;
int z = get_bill_of_materials(crafted_items);
Have I passed by reference or so I need to do this?
map<string, string> crafted_items;
map<string, string> &crafted_reference = crafted_items;
int z = get_bill_of_materials(crafted_reference);
Many thanks.
int get_bill_of_materials(map<string, string> &mats_map);
map<string, string> crafted_items;
int z = get_bill_of_materials(crafted_items);
Have I passed by reference or so I need to do this?
map<string, string> crafted_items;
map<string, string> &crafted_reference = crafted_items;
int z = get_bill_of_materials(crafted_reference);
Many thanks.