12 2023 档案

摘要:实验四 1 #include <stdio.h> 2 int main(){ 3 FILE *p; 4 int i=0; 5 char ch; 6 p=fopen("data4.txt","r"); 7 if(p==NULL) {printf("wrong");exit(0);} 8 while(! 阅读全文
posted @ 2023-12-18 10:22 夏夜# 阅读(16) 评论(0) 推荐(0)
摘要:task 1 1 // P286例8.17 2 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 3 // 打印不及格学生信息和所有学生信息程分别调用 4 5 #include <stdio.h> 6 #include <string.h> 7 #define N 3 // 运行 阅读全文
posted @ 2023-12-14 19:40 夏夜# 阅读(13) 评论(0) 推荐(0)
摘要:实验1 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], int n, int *pmin, i 阅读全文
posted @ 2023-12-04 10:41 夏夜# 阅读(9) 评论(0) 推荐(0)