ZY_显示菜单并获得输入选项

ZY_输入n个同学的m门成绩
zhangyu 2 years ago
parent 60f03ebf4d
commit 5570fb65d5

@ -153,7 +153,25 @@ int main(void)
```
int Menu(void)
{
int itemSelected;
printf("Management for Studets' scores\n");
printf("1.Input record\n");
printf("2.Calculate total and average score of every course\n");
printf("3.Calculate total and average score of evry students\n");
printf("4.Sort in descending order by score\n");
printf("5.Sort in ascending order by score\n");
printf("6.Sort in ascending order by name\n");
printf("7.Sort in dictionary order by name\n");
printf("8.Search by number\n");
printf("9.Search by name\n");
printf("10.Statisit analysis\n");
printf("11.List record\n");
printf("12.Write to a file\n");
printf("13.Read from a file\n");
printf("0.Exit\n");
printf("Please Input your choice:");
scanf("%d",&itemSelected); //读入用户输入
return itemSeleted;
}
```

Loading…
Cancel
Save