不知道哪里错了 摘要:#include<cstdio> #include<iostream> #include<algorithm> using namespace std; int n; struct Stu{…… 题解列表 2017年08月19日 0 点赞 0 评论 2680 浏览 评分:8.0
”奖学金“ C语言题解 思路是创建一个n(键盘输入的变量)行,5列的二维数组。二维数组的第0列表示学号,第1到3列为输入的各科成绩,第4列为三科成绩之和。```c#includeintmain(){voidswap(intscore[100][5],intn,intm);intn;intscore[1000][5]={0}; 题解列表 2021年05月04日 0 点赞 0 评论 1093 浏览 评分:7.6
奖学金 (C++代码) 摘要:解题思路:注意事项:参考代码:提供一种简洁的比较函数。struct stu{ int chi,math,eng,tot,rank;//语数外,总分,号码}a[1001];bool cmp(stu…… 题解列表 2017年12月26日 0 点赞 0 评论 3465 浏览 评分:6.3
奖学金 (C语言代码) 摘要:解题思路:能力有限,感觉算是比较简洁的了。注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; struct…… 题解列表 2018年05月28日 0 点赞 0 评论 1514 浏览 评分:6.0
学会结构体数组,看不懂就评论 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct student{ int num; int a,b,c; int su…… 题解列表 2023年04月23日 0 点赞 0 评论 509 浏览 评分:6.0
奖学金-!!采用链表的思维作答,值得观看(C语言代码) ```c#include#include#include#includetypedefintElemType;intn;typedefstructnode//结点结构体{ElemTypesno;ElemTypechinese;ElemTypesum;//数据域, 题解列表 2020年07月22日 0 点赞 1 评论 504 浏览 评分:6.0
奖学金-题解(C语言代码) #include#includetypedefstructstuinfo{intid;intlanguage_score;intmath_score;intenglish_score;intsun_score;structstuinfo*next;}STU;STU*chushihua(intnum, 题解列表 2020年05月01日 0 点赞 0 评论 1178 浏览 评分:6.0
奖学金(C++结构体算法) 解题思路:使用结构体设置比总分,比语文,再比学号,定义,用一个数组输入,在排序加入结构体,最后输出;参考代码:#includeusingnamespacestd;intn;structstu{intxh,yw,sx,yy,zf;//学号,语文, 题解列表 2022年05月07日 0 点赞 0 评论 1660 浏览 评分:5.5
奖学金 (Python代码) 这道题笔者就直接定义了数据类型grade,然后按题意定义了大小顺序并写出了排序。然后排序就完了。其实说不定直接冒泡求前五还快一点?```pythonclassgrade:def__init__(self,o,c,m,e):self.o=oself.c=cself.t=c+m+edefcompare(g 题解列表 2019年08月26日 0 点赞 0 评论 2677 浏览 评分:5.3
奖学金-题解(C++代码)(结构体排序做的) 将学号和各科成绩及总分五项数据项做成一个结构体,对结构体对象进行排序先写结构体:```cpptypedefstruct{intxuehao;intyuwen;intshuxue;intyingyu;intsum;}student;```利用了sort函数来排序结构体对象, 题解列表 2019年11月17日 0 点赞 0 评论 1839 浏览 评分:5.2