12 2022 档案

 
实验6 文件应用编程
摘要:1 #define _CRT_SECURE_NO_WARNINGS 2 #include<stdio.h> 3 int main() 4 { 5 int num=0; 6 FILE* fp; 7 char ch; 8 if ((fp = fopen("data4.txt", "r"))==NULL) 阅读全文
posted @ 2022-12-25 19:23 汪毅恒 阅读(42) 评论(0) 推荐(0)
实验5 结构体应用编程
摘要:1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include<string.h> 4 #define N 100 5 6 typedef struct { 7 char num[10]; // 学号 8 int s1; // 期末 阅读全文
posted @ 2022-12-22 16:28 汪毅恒 阅读(46) 评论(0) 推荐(0)