50分怎么办? 摘要:输入问题。每次输入学生的信息,用一个直接读入即可。scanf("%s %d %d", &students[i].name, &students[i].age, &students[i].marks);…… 题解列表 2023年08月24日 0 点赞 0 评论 523 浏览 评分:0.0
C++类的思想题解 摘要:解题思路:使用类的思想,其他的就不说了别的地方都有写。注意事项:参考代码:#include<iostream>using namespace std;class Student {private: s…… 题解列表 2023年11月01日 0 点赞 0 评论 544 浏览 评分:0.0
题目 1739: 成绩排序 摘要:解题思路:注意事项:参考代码:def compare_students(student): name, age, score = student return (score, name, …… 题解列表 2023年11月10日 0 点赞 0 评论 674 浏览 评分:2.0
成绩排序(Python实现) 摘要:解题思路:注意事项:参考代码:def sort_students(students): students.sort(key=lambda x: (x[2], x[0], x[1])) re…… 题解列表 2023年11月12日 0 点赞 0 评论 614 浏览 评分:0.0
成绩排序(答案错误只有50分的试试把name数组空间改为101) 参考代码:```c#include#includestructstudent{charname[101];//字符串后面要有个空intage;intscore;};voidswap(structstudent*a,structstudent*b)//交换{structstudentt;t=*a;*a= 题解列表 2023年11月15日 1 点赞 1 评论 458 浏览 评分:10.0
1739: 成绩排序 (坑很多) 摘要:解题思路:注意事项:1.成绩小的在前 2.名字小的在前(比较的整个字符串不是首字母) 3.年龄小的在前参考代码:#include<stdio.h> typedef struct{ char a[10…… 题解列表 2023年11月22日 0 点赞 0 评论 660 浏览 评分:0.0
c代码记录之成绩排序 摘要:解题思路:注意事项:多组输入代码实现二级动态数组的内存分配及释放strcmp及strcpy函数参考代码:#include<stdio.h> #include<string.h> int main(…… 题解列表 2023年11月28日 0 点赞 0 评论 476 浏览 评分:0.0
c代码记录之成绩排序--结构体 摘要:Mark: ```c int n = 10 ; int a[n]; // NO , 这种情况不被编译器允许 ``` ```c int n ; scanf(" %d "…… 题解列表 2024年01月03日 1 点赞 0 评论 739 浏览 评分:10.0
编写题解 1739: 成绩排序 -java比较器 摘要:解题思路: 利用集合的sort进行排序(重写比较器)注意事项: 第一排序条件为成绩 其次姓名 最后年龄参考代码:import java.util.ArrayList; import java.uti…… 题解列表 2024年06月14日 0 点赞 0 评论 593 浏览 评分:0.0
1739: 成绩排序 sort+结构体 包看懂 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体xs,包含三个成员变量:字符串x、整数y和整数z stru…… 题解列表 2024年12月08日 0 点赞 0 评论 554 浏览 评分:0.0