解题思路:
注意事项:
参考代码:
#include <stdio.h> typedef struct stu{ char name[20]; int sroue; }temp; int main(void) { int n = 0; temp pc[101]; int j = 0; scanf("%d", &n); int max = 0; for (int i = 0; i < n; ++i) { scanf("%d %s",&pc[i].sroue,pc[i].name); } for(int i = 0;i<n;++i) { if(pc[i].sroue>=max) { max = pc[i].sroue; j = i; } } printf("%s",pc[j].name); return 0; }
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:676 |
C语言程序设计教程(第三版)课后习题6.8 (C语言代码)浏览:763 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:1294 |
WU-蓝桥杯算法提高VIP-交换Easy (C++代码)浏览:1107 |
C语言程序设计教程(第三版)课后习题8.3 (C语言代码)浏览:1090 |
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)浏览:853 |
数字游戏 (C++代码)浏览:1178 |
C二级辅导-温度转换 (C语言代码)浏览:718 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:558 |
判定字符位置 (C++代码)浏览:667 |