摘要: task4.c 程序代码: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #define N 80 4 #define M 80 5 void read_row() { 6 FILE* fp; 7 char x[M][N]; 8 f 阅读全文
posted @ 2025-06-08 22:20 梁武博 阅读(20) 评论(0) 推荐(0)
摘要: task4.c 程序代码: 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 dou 阅读全文
posted @ 2025-06-02 20:58 梁武博 阅读(21) 评论(0) 推荐(0)
摘要: Task1.c task1_1.c 程序代码: 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], 阅读全文
posted @ 2025-05-18 18:01 梁武博 阅读(47) 评论(0) 推荐(0)
摘要: task1.c 源代码: 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 // 输出数组x占用的内存字节数 10 printf("s 阅读全文
posted @ 2025-04-20 21:25 梁武博 阅读(25) 评论(0) 推荐(0)
摘要: task1.c 源代码: 1 #include <stdio.h> 2 3 char score_to_grade(int score); 4 5 int main() { 6 int score; 7 char grade; 8 9 while(scanf("%d", &score) != EOF 阅读全文
posted @ 2025-04-09 21:47 梁武博 阅读(22) 评论(0) 推荐(0)
摘要: task1.c: 源代码: #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0)); // 以当前系统时间作为随机种子 fo 阅读全文
posted @ 2025-03-23 21:53 梁武博 阅读(29) 评论(0) 推荐(0)
摘要: Task1.c: task1_1.c: 代码: 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> 阅读全文
posted @ 2025-03-06 14:58 梁武博 阅读(59) 评论(0) 推荐(0)