学生管理
利用函数指针数组实现菜单选择
?
将下面的程序改写成使用菜单驱动界面。程序提供5个选项如下所示(应在屏幕上显示):
Enter a choice: ?
0 Print the array of grades ?
1 Find the minimum grade ?
2 Find the maximum grade ?
3 Print the average on all tests for each student ?
4 End program
当用户按下选择后,得到相应的输出。
?
?
注意:1.调用函数传入数组参数时,只需写数组名即可,数组名即为数组首地址
? ? ? ? ?2.else if语句块中,return 后一定要有一整数值
? ? ? ? ?3.C++中的system为小写
?
?