皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
已知学生的记录由学号和学习成绩构成,N名学生的数据已存人a结构体数组中。请编写函数fun,函数的功能是:找出成绩最低的学生记录,通过形参返回主函数(规定只有一个最低分)。已给出函数的首部,请完成该函数。 include include define N 10 typedef struct ss { char num[10]; int s; }STU; fun( STU a[],STU *s ) { } main() {STU a[N]={{“A01”,81),{“A02”,89),{“A03”,66},{“A04”,87},{“A05”,77},{“A06”,90),{“A07”,7 9),{“A08”,61},{“A09”,80),{“A10”,71)},m; int i; printf('*****The original data*****\n'); for(i=0;i<N;i++)printf(“No=%S Mark=%d\n”,a[i].num,a[i].s); fun(a,&m); printf('*****THE RESULT*****\n'); printf(“The lowest:%S,%d\n”,m.num,m.s); )
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】两个零件在同一方向上只能有 个接触面和配合面。
A.
B.
C.
D.
【判断题】霉菌有多细胞和单细胞结构,所以它的营养类型也是多种的。
A.
正确
B.
错误
【单选题】What attitude should we take towards foreiners___
A.
look down on their culturesq
B.
tream them in a polite way
C.
laugh at them
D.
treat them pointless
【单选题】两个零件在同一方向上只能有 个接触面和配合面。
A.
B.
C.
D.
【单选题】美洲分布在地球的哪个区域?
A.
北半球
B.
南半球
C.
东半球
【多选题】What attitude should security staff have whenconducting security check?
A.
Polite and strict.
B.
Careful and patient.
C.
Calm and polite.
D.
Cold and strict.
【简答题】根据“发达国家和发展中国家分布图”,回答下列问题:(10分) (1)发达国家的数量 (大于、等于、小于)发展中国家。 (2)下列哪个地区是发达国家最多的区域?(  ) A、亚洲东部         B、欧洲西部         C、大洋洲           D、北美洲 (3)从南北半球来看,发达国家主要分布在 ;发展中国家主要分布在 及北半球的南部。 (4)根据上面的资料,你应该了解到“南北对话...
【简答题】根据“发达国家和发展中国家分布图”,回答下列问题: (1)发达国家的数量______(大于、等于、小于)发展中国家. (2)下列哪个地区是发达国家最多的区域?______ A、亚洲东部B、欧洲西部C、大洋洲D、北美洲 (3)从南北半球来看,发达国家主要分布在______;发展中国家主要分布在______及北半球的南部. (4)根据上面的资料,你应该了解到“南北对话”中的“南”和“北”分别指____...
【单选题】According to the passage, what attitude should be adopted toward your grown-up children?
A.
Leave them to live their own life and learn their own lessons.
B.
Give them some material help if you can, but not too much.
C.
Help them with your wisdom born of experience.
D.
Let them live separately.
【判断题】两个零件在同一方向上只能有一个接触面和配合面。
A.
正确
B.
错误
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题