I see you have done it correctly. You have implemented the Ingredient struct correctly.
On Dish.hpp file, you will need to change the member variable std::vector ingredients_;
to using the Ingredient
struct.
{ | |
"BALI": "ID", | |
"AFG": "AF", | |
"ALB": "AL", | |
"DZA": "DZ", | |
"ASM": "AS", | |
"AND": "AD", | |
"AGO": "AO", | |
"AIA": "AI", | |
"ATA": "AQ", |
{ | |
"money": { | |
"ZERO": 0, | |
"NO_COVER": 1000, | |
"UNLIMITED": 100000000000000, | |
"ONE_HUNDRED": 100, | |
"TWO_HUNDRED": 200, | |
"THREE_HUNDRED": 300, | |
"ONE_THOUSAND": 1000, | |
"TWO_THOUSAND": 2000, |