成绩排序-题解(C++代码) ```cpp#include#include#include#includeusingnamespacestd;voidcharru_sort(int*a,intn){//插入排序inti,j,temp;for(inti=1;i=0;j--){if(a[j]>temp){a[j+1]=a[j];}el 题解列表 2020年03月11日 0 点赞 2 评论 1588 浏览 评分:9.9
此题有个小坑 答案错误50的可以看过来 #MarkDown编辑器基本使用说明**首先学习一个函数**/*原型:intstrcmp(constchar*s1,constchar*s2);头文件:#include功能:用来比较两个字符串参数:s1、s2为两个进行比较的字符串返回值:若s1、s2字符串相等, 题解列表 2022年10月04日 0 点赞 2 评论 687 浏览 评分:9.9
成绩排序(答案错误只有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
c代码记录之成绩排序--结构体 摘要:Mark: ```c int n = 10 ; int a[n]; // NO , 这种情况不被编译器允许 ``` ```c int n ; scanf(" %d "…… 题解列表 2024年01月03日 1 点赞 0 评论 739 浏览 评分:10.0