实验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)
阅读全文
实验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; // 期末
阅读全文