摘要: task3 #include <stdio.h> #define N 100 #define M 80 void write(); void read_str(); void read_char(); int main(){ printf("check1:把一组字符信息以字符串方式写入文本文件\n" 阅读全文
posted @ 2025-12-31 09:07 kanejames 阅读(7) 评论(1) 推荐(0)
摘要: task1 #include <stdio.h> #include <string.h> #define N 3 typedef struct Student{ int id; char name[20]; char subject[20]; double perf; double mid; dou 阅读全文
posted @ 2025-12-23 20:18 kanejames 阅读(10) 评论(1) 推荐(0)
摘要: task1.1 #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, int *pmax 阅读全文
posted @ 2025-12-11 22:56 kanejames 阅读(8) 评论(1) 推荐(0)
摘要: task1 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", sizeof(x)) 阅读全文
posted @ 2025-11-15 17:34 kanejames 阅读(19) 评论(2) 推荐(0)
摘要: task1 #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_grad 阅读全文
posted @ 2025-10-31 00:02 kanejames 阅读(19) 评论(1) 推荐(0)
摘要: task1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define N2 35 int main() { int cnt; int random_major,random_n 阅读全文
posted @ 2025-10-19 16:26 kanejames 阅读(10) 评论(1) 推荐(0)
摘要: task1.1 ` #include <stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 阅读全文
posted @ 2025-09-26 22:47 kanejames 阅读(13) 评论(1) 推荐(0)