摘要: 实验任务4 源代码 1 #include <stdio.h> 2 #include <string.h> 3 #define N 100 4 5 int main(){ 6 int i,j,line,n; 7 char t; 8 char s[N][N]; 9 FILE *fp; 10 11 fp= 阅读全文
posted @ 2025-12-31 13:43 humeop 阅读(3) 评论(0) 推荐(0)
摘要: 实验任务4 源代码 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 double 阅读全文
posted @ 2025-12-25 19:44 humeop 阅读(7) 评论(1) 推荐(0)
摘要: 实验任务1 1-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, in 阅读全文
posted @ 2025-12-11 22:15 humeop 阅读(6) 评论(1) 推荐(0)
摘要: 实验任务1 源代码 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 // 输出数组x占用的内存字节数 10 printf("size 阅读全文
posted @ 2025-11-16 17:37 humeop 阅读(11) 评论(1) 推荐(0)
摘要: 实验任务1 源代码 1 #include <stdio.h> 2 3 char score_to_grade(int score); 4 5 int main() 6 { 7 int score; 8 char grade; 9 10 while(scanf("%d", &score) != EOF 阅读全文
posted @ 2025-10-29 19:40 humeop 阅读(8) 评论(1) 推荐(0)
摘要: 实验任务1 源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 #define N1 80 7 #define N2 35 8 9 int main(){ 10 int cnt; 1 阅读全文
posted @ 2025-10-18 15:44 humeop 阅读(8) 评论(1) 推荐(0)
摘要: 实验任务1 源代码 #include<stdio.h> int main() { printf(" o \n"); printf("<h>\n"); printf("I I\n"); return 0; } 运行截图 tast1-1 源代码 1 #include<stdio.h> 2 3 int m 阅读全文
posted @ 2025-09-30 13:08 humeop 阅读(8) 评论(1) 推荐(0)