文章

84

粉丝

408

获赞

31

访问

831.8k

头像
塑身菜单(c++)
P1054
发布于2020年7月14日 09:55
阅读数 8.4k

注意:最后是按热量从小到大进行输出

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
string list[] = {"Boiled Fish with Pickled Cabbage and Chili 92",
				"Sauted Sliced Pork with Pepper and Chili , Sichuan Style 231",
				"Cold Noodles Sichuan Style 260",
				"Fish Filets in Hot Chili Oil 239",
				"Steamed Rice Rolls 196",
				"Kung Pao Chicken 313",
				"Hot and Sour Rice Noodles 144",
				"Soybean Milk 92",
				"Steamed Rice 31",
				"Scrambled Egg with Scallion 81",
				"Steamed Jiaozi 119",
				"Sauted Sliced Pork with Black Fungus 143",
				"Scrambled Egg with Leek 128",
				"Steamed Bun Stuffed with Red Bean Paste 128",
				"Yu-Shiang Shredded Pork (Sauted with Spicy Garlic Sauce) 134"};
int cals[] = {92, 231, 260, 239, 196, 313, 144, 92, 31, 81, 119, 143, 128, 128, 134};
typedef struct Node{
	int cal;
	string name;
}node;
bool cmp(const node &a, const node &b)
{
	return a.cal < b.c...
登录查看完整内容


登录后发布评论

暂无评论,来抢沙发