摘要: 任务四 源代码 1 #include <stdio.h> 2 #include <ctype.h> 3 #include <stdlib.h> 4 int main() 5 { 6 int line = 0, ch, char_cnt = 0; 7 int flag_newline = 1; 8 F 阅读全文
posted @ 2026-06-20 12:22 kasdda 阅读(16) 评论(0) 推荐(0)
摘要: 任务四 源代码 1 #include <stdio.h> 2 #define N 10 3 #include <stdlib.h> 4 typedef struct { 5 char isbn[20]; 6 char name[80]; 7 char author[80]; 8 double sal 阅读全文
posted @ 2026-06-10 13:06 kasdda 阅读(12) 评论(0) 推荐(0)
摘要: 任务一 源代码 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(in 阅读全文
posted @ 2026-05-27 17:03 kasdda 阅读(14) 评论(0) 推荐(0)
摘要: 实验任务一 源代码 1 #include <stdio.h> 2 #include<stdlib.h> 3 #define N 4 4 #define M 2 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 printf("sizeof( 阅读全文
posted @ 2026-04-29 15:55 kasdda 阅读(9) 评论(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", &s 阅读全文
posted @ 2026-04-15 17:22 kasdda 阅读(24) 评论(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-01 16:25 kasdda 阅读(17) 评论(0) 推荐(0)
摘要: 试验任务一 源代码 1 #include <stdio.h> 2 int main() 3 { 4 printf(" O \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 printf(" O \n"); 8 printf("<H>\n"); 9 print 阅读全文
posted @ 2026-03-18 16:44 kasdda 阅读(13) 评论(0) 推荐(0)