Untitled
unknown
c_cpp
a month ago
2.0 kB
2
Indexable
Never
if (foodCategories.empty()) { foodCategories.push_back(FoodCategory("Carbohydrates", { {"Rice", 200, "1 cup"}, {"Bread", 80, "1 slice"}, {"Pasta", 200, "1 cup"}, {"Oats", 150, "1 cup"}, {"Quinoa", 220, "1 cup"}, {"Sweet Potatoes", 120, "1 medium"} })); foodCategories.push_back(FoodCategory("Proteins", { {"Chicken Breast", 165, "100g"}, {"Beef Steak", 250, "100g"}, {"Fish (Salmon)", 200, "100g"}, {"Eggs", 70, "1 large"}, {"Greek Yogurt", 100, "1 cup"}, {"Tofu", 80, "100g"} })); foodCategories.push_back(FoodCategory("Vegetables", { {"Broccoli", 55, "1 cup"}, {"Carrots", 41, "1 medium"}, {"Spinach", 23, "1 cup"}, {"Bell Peppers", 30, "1 medium"}, {"Tomatoes", 22, "1 medium"}, {"Green Beans", 44, "1 cup"} })); foodCategories.push_back(FoodCategory("Fruits", { {"Apple", 95, "1 medium"}, {"Banana", 105, "1 medium"}, {"Orange", 62, "1 medium"}, {"Strawberries", 50, "1 cup"}, {"Blueberries", 85, "1 cup"}, {"Avocado", 240, "1 medium"} })); foodCategories.push_back(FoodCategory("Dairy and Alternatives", { {"Milk", 150, "1 cup"}, {"Cheese", 113, "1 slice"}, {"Cottage Cheese", 90, "1 cup"}, {"Almond Milk", 30, "1 cup"}, {"Soy Milk", 80, "1 cup"} })); foodCategories.push_back(FoodCategory("Fats and Oils", { {"Olive Oil", 120, "1 tablespoon"}, {"Butter", 102, "1 tablespoon"}, {"Nuts (Almonds)", 160, "1 ounce"}, {"Seeds (Chia Seeds)", 140, "1 ounce"} })); foodCategories.push_back(FoodCategory("Sweets and Snacks", { {"Dark Chocolate", 170, "1 ounce"}, {"Ice Cream", 210, "1 cup"}, {"Cookies", 100, "1 cookie"}, {"Granola Bar", 150, "1 bar"} })); foodCategories.push_back(FoodCategory("Beverages", { {"Coffee", 2, "1 cup"}, {"Tea", 2, "1 cup"}, {"Orange Juice", 110, "1 cup"}, {"Soda", 150, "1 can"} })); }
Leave a Comment