摘要: 任务1 #include <stdio.h> #include<stdlib.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = 阅读全文
posted @ 2026-05-05 23:25 陈宇凡 阅读(4) 评论(0) 推荐(0)
摘要: #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while (scanf("%d", &score) != EOF) { grade = score_to_grade(sco 阅读全文
posted @ 2026-04-21 23:17 陈宇凡 阅读(4) 评论(0) 推荐(0)
摘要: 任务1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0));// 以当前系统时间作为随机种子 for(i = 0; i 阅读全文
posted @ 2026-04-06 22:39 陈宇凡 阅读(8) 评论(0) 推荐(0)
摘要: 任务1 源代码1 #include<stdio.h> #include<stdlib.h> int main(){ printf(" O\n"); printf("<H>\n"); printf("I I\n"); printf(" O\n"); printf("<H>\n"); printf("I 阅读全文
posted @ 2026-03-24 22:04 陈宇凡 阅读(3) 评论(0) 推荐(0)