摘要: task4.c 点击查看代码 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <ctype.h> int main() { FILE* fp; char ch; int line_count = 0; int char_coun 阅读全文
posted @ 2025-06-07 14:42 DODJERRY 阅读(15) 评论(0) 推荐(0)
摘要: task4.c 点击查看代码 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; char name[80]; char author[80]; double sales_price; int sales_count; } 阅读全文
posted @ 2025-06-01 16:07 DODJERRY 阅读(20) 评论(0) 推荐(0)
摘要: task1_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, 阅读全文
posted @ 2025-05-18 20:18 DODJERRY 阅读(21) 评论(0) 推荐(0)
摘要: task6.c 点击查看代码 #include <stdio.h> #define N 100 void dec_to_n(int x, int n); int main() { int x; while (printf("输入十进制整数: "), scanf_s("%d", &x) != EOF) 阅读全文
posted @ 2025-04-20 19:26 DODJERRY 阅读(30) 评论(0) 推荐(0)
摘要: task1.c 点击查看代码 #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = scor 阅读全文
posted @ 2025-04-09 20:41 DODJERRY 阅读(16) 评论(0) 推荐(0)