题解 2918: 成绩排序

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

2918成绩排序--链表实现

解题思路:链表实现注意事项:参考代码:#include#include#includetypedefstruct_Node{charz[30];intdata;struct_Node*next;}Node,

特别基础,用了结构体和选择排序,

摘要:解题思路:首先定义结构体,然后比较分数大小,遇到分数相同的,再比较字符串大小因为是选择排序,每次循环,都可以得到一个在最前面的下标,依次进行即可。注意事项:参考代码:#include <stdio.h……

2918: 成绩排序

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() {     int n = 0, b[25] = {0}; ……

2918: 成绩排序

```cpp#include#includeusingnamespacestd;typedefstructstudent{charm[20];intg;}S;boolcmp(Sx1,Sx2){if(x1.g==x2.g)for(inti=0;ix2.m[i])returnfalse;elseif(x1

编写题解 2918: 成绩排序

```c#include#includestructStudent{charname[20];intscore;}students[20],temp_stu;intmain(){intnum,i,j;scanf("%d",&num);for(i=0;i

2918:成绩排序

```c#include#includetypedefstructstudent{charname[25];intscore;}student;intmain(){intn=0,i=0,j=0;studentstu[20]={0};studenttemp;scanf("%d",

编写题解 2918: 成绩排序

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; struct u {     int k;     string s……

编写题解 2918: 成绩排序

摘要:解题思路:输入-冒泡法-输出注意事项:字符串的比较不能直接大小写参考代码:#include<stdio.h>#include<string.h>typedef struct student{    c……

成绩排序(用结构体来做)

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> struct student {     char name[20];     int……

编写题解 2918: 成绩排序(sort)

摘要:解题思路:注意事项:参考代码:#include <iostream>#include<algorithm>using namespace std;// 定义学生结构体,包含姓名(字符数组形式,最多容纳……