12 2023 档案

摘要:task 4 源代码: 1 #include<stdio.h> 2 3 int main() 4 { 5 FILE *fp; 6 fp=fopen("d:\\data4.txt","r"); 7 if(fp==NULL){ 8 printf("fail to open file.\n"); 9 re 阅读全文
posted @ 2023-12-20 17:43 侯岩宏 阅读(5) 评论(0) 推荐(0) 编辑
摘要:实验任务1 源代码: 1 #include <stdio.h> 2 #include <string.h> 3 #define N 10 // 运行程序输入测试时,可以把这个数组改小一些输入测试 4 5 typedef struct student { 6 int id; // 学号 7 char 阅读全文
posted @ 2023-12-17 14:59 侯岩宏 阅读(28) 评论(0) 推荐(0) 编辑
摘要:实验任务1 task1_1.c 源代码: 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[], in 阅读全文
posted @ 2023-12-03 17:21 侯岩宏 阅读(17) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示