kobe824

导航

2026年5月5日

实验4

摘要: 实验任务1 #include <stdlib.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 @ 2026-05-05 20:15 kobebrant24 阅读(6) 评论(0) 推荐(0)

2026年4月17日

实验3

摘要: 实验任务1 #include <stdlib.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_gra 阅读全文

posted @ 2026-04-17 09:40 kobebrant24 阅读(8) 评论(0) 推荐(0)

2026年4月1日

实验2

摘要: ##任务1 #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0)); // 以当前系统时间作为随机种子 for(i = 0; i < N; ++i) { numb 阅读全文

posted @ 2026-04-01 17:28 kobebrant24 阅读(10) 评论(0) 推荐(0)

2026年3月22日

实验1

摘要: 任务1 #include<stdlib.h> int main() { printf(" O \n"); printf("<H> \n"); printf("I I \n"); printf(" O \n"); printf("<H> \n"); printf("I I \n"); system(" 阅读全文

posted @ 2026-03-22 14:54 kobebrant24 阅读(9) 评论(0) 推荐(0)