文章浏览阅读1.4w次,点赞12次,收藏81次。#include<stdio.h>#include<stdlib.h> struct Student { int xuehao; char name[20]; float score; }; int paixu(const void* a, const void* b) { struct Student* aa = (struct Student*)a; struct Student* bb = (struct Student*)b; return......
2023-11-14 14:40 阅读 阅读全文文章浏览阅读1.4w次,点赞12次,收藏81次。#include<stdio.h>#include<stdlib.h> struct Student { int xuehao; char name[20]; float score; }; int paixu(const void* a, const void* b) { struct Student* aa = (struct Student*)a; struct Student* bb = (struct Student*)b; return......
2023-11-21 16:58 阅读 阅读全文学号是指学校为每一位学生分配的一个编号,为方便对学生的管理,一般每个人的学号不会重复,号码中一般会包含年份,班级等信息。...
2023-11-14 14:41 阅读 阅读全文文章浏览阅读2.3k次。可以参考下面的代码:#include<stdio.h>#include<stdlib.h>intmain(void){FILE*fp=fopen("data.txt","r");if(!fp){fp=fopen("data.txt","w");printf("请输入姓名:");char*name;scanf("%s",name);prin......
2023-11-12 05:22 阅读 阅读全文