摘要: 任务四 点击查看代码 #include <stdio.h> #include <stdlib.h> // system()所需头文件 int main() { FILE *fp; char ch; int line_count = 0; int char_count = 0; if ((fp = f 阅读全文
posted @ 2026-06-23 19:58 尽繁华 阅读(8) 评论(0) 推荐(0)
摘要: 任务一 点击查看代码 #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int *pmin, int *p 阅读全文
posted @ 2026-06-14 14:40 尽繁华 阅读(5) 评论(0) 推荐(0)
摘要: 任务四 点击查看代码 #include <stdio.h> #include<stdlib.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 dou 阅读全文
posted @ 2026-06-14 14:31 尽繁华 阅读(6) 评论(0) 推荐(0)
摘要: 任务四 点击查看代码 #include <stdio.h> #include <math.h> int classify_triangle(int a, int b, int c) { if (a <= 0 || b <= 0 || c <= 0 || a + b <= c || a + c <= 阅读全文
posted @ 2026-06-14 14:26 尽繁华 阅读(4) 评论(0) 推荐(0)
摘要: 点击查看代码 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 #include<stdlib.h> 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 // 输出数组x占用的内存字节数 阅读全文
posted @ 2026-05-05 20:46 尽繁华 阅读(7) 评论(0) 推荐(0)
摘要: 任务一 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0)); // 以当前系统时间作为随机种子 for(i 阅读全文
posted @ 2026-04-14 10:57 尽繁华 阅读(5) 评论(0) 推荐(0)
摘要: 任务一 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } 阅读全文
posted @ 2026-03-24 20:34 尽繁华 阅读(8) 评论(0) 推荐(0)