题解 1739: 成绩排序

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

筛选

成绩排序(水题)

```c#include#includestructstu{charname[200];inta,b;};intmain(){structstust[1001],t;intn,i,j;while(~scanf("%d",&n)){for(i=0;ist[j+1].a){t=st[j];st[j]=st

成绩排序!!

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

成绩排序c语言

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

此题有个小坑 答案错误50的可以看过来

#MarkDown编辑器基本使用说明**首先学习一个函数**/*原型:intstrcmp(constchar*s1,constchar*s2);头文件:#include功能:用来比较两个字符串参数:s1、s2为两个进行比较的字符串返回值:若s1、s2字符串相等,

成绩排序(容器)

摘要:#include<iostream> using namespace std; #include<vector> #include<string> #include<algorithm> c……

1739: 成绩排序

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

成绩排序(C语言)

#include#includestructstudent{charname[200];intage;intscore;}s[1005];intmain(){intn;structstudentt;while(scanf("%d",&n)!=EOF){for(inti=0;i

!!!!!有坑!!这题是多组一起输入!!!!用类和sort来解决问题

解题思路:这题是多重输入,题目没有明说,这个坑坑死人!!先定义一个类,存储数据,建立全部声明为公有,不然要多定义几个函数:默认构造函数,赋值函数和输出函数。通过自定义sort排序输出。注意事项:每次开始是要重新对类进行定义,参考代码:#includeusingnamesp

对矩阵二维数组还是不是很熟悉啊

摘要:解题思路:注意事项:折腾了这么久,不懈题解对不起自己看时间一道题也高了快一个小时了参考代码:##while True:##    n=int(input())##    lh=[]##    for ……