解题思路:
注意事项:
参考代码:
#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语言程序设计教程(第三版)课后习题6.5 (C语言代码)浏览:760 |
三角形 (C语言代码)浏览:915 |
矩阵加法 (C语言代码)浏览:1723 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:564 |
sizeof的大作用 (C语言代码)浏览:1028 |
1048题解(读入回车问题)浏览:566 |
一元一次方程 (C语言代码)浏览:4070 |
勾股数 (C语言代码)浏览:800 |
1052题解(链表操作)浏览:674 |
快速排序算法1浏览:886 |