文章
17
粉丝
177
获赞
2
访问
118.3k
#include<stdio.h>
#include<stdlib.h>
typedef struct dish{
char name[100];
int calorie;
} dish;
int compare(const void* a, const void* b){
return (((dish*)a)-> calorie - ((dish*)b)-> calorie);
}
int main(){
dish dishes[15] = {{"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},
&nbs...
登录后发布评论
暂无评论,来抢沙发