摘要: task1 #include <stdio.h> #define N 4 #define M 2 #include <stdlib.h> void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) 阅读全文
posted @ 2025-04-17 23:03 飞嘟 阅读(6) 评论(0) 推荐(0)
摘要: task1 #include <stdio.h> #include<stdlib.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != E 阅读全文
posted @ 2025-04-05 22:53 飞嘟 阅读(11) 评论(0) 推荐(0)
摘要: task1 #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<N;i++) 阅读全文
posted @ 2025-03-20 14:35 飞嘟 阅读(4) 评论(0) 推荐(0)
摘要: //task 1_1.c#include<stdio.h> #include<stdlib.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); pri 阅读全文
posted @ 2025-03-05 20:56 飞嘟 阅读(7) 评论(0) 推荐(0)