摘要: #include<stdio.h> int main(){ char ch; FILE *fp; fp=fopen("data4.txt","r"); if(fp==NULL){ printf("fail to open file"); return 1; } int count=0; ch=fge 阅读全文
posted @ 2022-12-21 16:28 李畅 阅读(40) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include<string.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 double sum; // 总评 char level[ 阅读全文
posted @ 2022-12-21 08:37 李畅 阅读(26) 评论(0) 推荐(0) 编辑