摘要: 任务一至任务三为验证性实验,无需写入实验博客文档 任务四 源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 int main(){ 5 int ch; 6 int line_cnt = 0; 7 int char_cnt = 0; 8 9 FILE * 阅读全文
posted @ 2026-06-23 16:49 不敢睡觉 阅读(6) 评论(0) 推荐(0)
摘要: 任务一至任务三为验证性实验。无需写入实验博客文档。 任务四 源代码 1 #include <stdio.h> 2 #define N 10 3 #include<stdlib.h> 4 5 typedef struct { 6 char isbn[20]; // isbn号 7 char name[ 阅读全文
posted @ 2026-06-15 14:23 不敢睡觉 阅读(8) 评论(0) 推荐(0)
摘要: 任务一 task1_1 源代码 1 #include <stdio.h> 2 #define N 5 3 #include<stdlib.h> 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_m 阅读全文
posted @ 2026-06-02 19:54 不敢睡觉 阅读(14) 评论(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-04 14:43 不敢睡觉 阅读(10) 评论(0) 推荐(0)
摘要: 任务一 源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 char score_to_grade(int score); 4 int main() { 5 int score; 6 char grade; 7 while(scanf("%d", &scor 阅读全文
posted @ 2026-04-20 17:38 不敢睡觉 阅读(16) 评论(0) 推荐(0)
摘要: 任务一 源代码 1 #include<stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 int main() { 6 int number; 7 int i; 8 srand(time(0)); 9 for(i = 阅读全文
posted @ 2026-04-06 15:37 不敢睡觉 阅读(10) 评论(0) 推荐(0)
摘要: 任务一 源代码 task1_2 1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 printf(" o \t o\n"); 6 printf("<H>\t <H>\n"); 7 printf("I I\t I I\n"); 8 s 阅读全文
posted @ 2026-03-21 23:18 不敢睡觉 阅读(17) 评论(0) 推荐(0)