摘要: 任务4 源代码 1 #include <stdio.h> 2 #include<stdlib.h> 3 4 int main() { 5 FILE *fp; 6 int line_cnt = 0; 7 int char_cnt = 0; 8 int ch; 9 int last_ch = '\n'; 阅读全文
posted @ 2026-06-21 17:24 wf-585 阅读(16) 评论(0) 推荐(0)
摘要: 实验4 源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 10 4 5 typedef struct { 6 char isbn[20]; 7 char name[80]; 8 char author[80]; 9 double s 阅读全文
posted @ 2026-06-15 21:27 wf-585 阅读(4) 评论(0) 推荐(0)
摘要: 任务1 源代码 1 #include <stdio.h> 2 #include<stdlib.h> 3 #define N 5 4 5 void input(int x[], int n); 6 void output(int x[], int n); 7 void find_min_max(int 阅读全文
posted @ 2026-06-02 20:55 wf-585 阅读(10) 评论(0) 推荐(0)
摘要: 任务1 源代码 1 #include <stdio.h> 2 #include<stdlib.h> 3 #define N 4 4 #define M 2 5 6 void test1() { 7 int x[N] = {1, 9, 8, 4}; 8 int i; 9 10 printf("size 阅读全文
posted @ 2026-05-05 21:40 wf-585 阅读(8) 评论(0) 推荐(0)
摘要: 四.实验结论 任务1 源代码 1 #include <stdio.h> 2 #include<stdlib.h> 3 4 char score_to_grade(int score); 5 6 int main(){ 7 int score; 8 char grade; 9 10 while(sca 阅读全文
posted @ 2026-04-21 21:38 wf-585 阅读(4) 评论(0) 推荐(0)
摘要: 四 任务1 源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 7 int main () { 8 int number; 9 int i; 10 11 srand(time(0)); 1 阅读全文
posted @ 2026-04-07 00:23 wf-585 阅读(12) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/wf-585 阅读全文
posted @ 2026-03-23 07:59 wf-585 阅读(7) 评论(0) 推荐(0)
摘要: 任务一 源代码 task1_1 #include<stdio.h> #include<stdlib.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); 阅读全文
posted @ 2026-03-18 23:48 wf-585 阅读(17) 评论(0) 推荐(0)