摘要: 任务四 点击查看代码 #include <stdio.h> int main() { FILE* f = fopen("C:\\Users\\Lenovo\\Desktop\\实验七\\data4.txt.txt", "r"); int lines = 0, chars = 0, c; while 阅读全文
posted @ 2025-12-30 20:27 Asuka02Langely 阅读(6) 评论(1) 推荐(0)
摘要: 任务四 点击查看代码 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 阅读全文
posted @ 2025-12-25 22:25 Asuka02Langely 阅读(7) 评论(1) 推荐(0)
摘要: 任务二 1.c 点击查看代码 #include <stdio.h> #include <string.h> #define N 80 int main() { char s1[N] = "Learning makes me happy"; char s2[N] = "Learning makes m 阅读全文
posted @ 2025-12-16 15:08 Asuka02Langely 阅读(8) 评论(1) 推荐(0)
摘要: 任务一 1.c 点击查看代码 #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, in 阅读全文
posted @ 2025-12-12 15:50 Asuka02Langely 阅读(5) 评论(1) 推荐(0)
摘要: 任务一 点击查看代码 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = { 1, 9, 8, 4 }; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", siz 阅读全文
posted @ 2025-11-16 23:43 Asuka02Langely 阅读(9) 评论(1) 推荐(0)
摘要: 任务一 点击查看代码 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while (scanf_s("%d", &score) != EOF) { grade 阅读全文
posted @ 2025-10-30 22:44 Asuka02Langely 阅读(9) 评论(1) 推荐(0)
摘要: 实验任务一 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define N2 35 int main() { int cnt; int random_major, 阅读全文
posted @ 2025-10-19 22:46 Asuka02Langely 阅读(10) 评论(1) 推荐(0)
摘要: 实验一 1.1 //打印一个字符小人 #include <stdio.h> int main(){ printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0;} 1.2 //打印一个字符小人 #include <stdio.h> int 阅读全文
posted @ 2025-10-08 23:25 Asuka02Langely 阅读(12) 评论(1) 推荐(0)