12 2022 档案

摘要:task.4 #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 c 阅读全文
posted @ 2022-12-23 16:16 往生堂十八代堂主 阅读(35) 评论(0) 推荐(0)
摘要:task.3 #include <stdio.h>#include<string.h>#define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 double sum; // 总评 char l 阅读全文
posted @ 2022-12-21 09:48 往生堂十八代堂主 阅读(23) 评论(0) 推荐(0)