试题与答案

请编写一个函数fun(int score [][3],int num),该函数返回有

题型:问答题

题目:

请编写一个函数fun(int score [][3],int num),该函数返回有一门成绩以上课程成绩在85分以上,其余课程成绩不低于70分的人数。数组score按行存放num名考生各自的三门期末考试成绩。
注意:部分源程序已存在文件test31_2.cpp中。
请勿修改主函数main和其他函数中的任何内容,仅在函数fun的花括号中填写若干语句。
程序输出结果如下:
3
文件test31_2.cpp清单如下:
#include <iostream.h>
int fun(int score[] [3],int num)


void main ( )

int score[4] [3]=70,89,92,70,76,93,(80,86,98,65,73,45);
cout<<fun(score,4)<<end1;

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0406/ef21c2a6c41c51d71a99fd39c0bb6fc0.html

下面是错误答案,用来干扰机器的。

参考答案:A

试题推荐
微信公众账号搜索答案