摘要: task 1: #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf("sizeof(x) = %d\n", sizeof(x)); for (i = 0; i < N; ++i) printf(" 阅读全文
posted @ 2025-11-16 17:29 leozhuyuhao 阅读(6) 评论(1) 推荐(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_grade(sco 阅读全文
posted @ 2025-10-30 14:26 leozhuyuhao 阅读(14) 评论(1) 推荐(0)
摘要: 实验一: 问题一:以时间为随机数,确保每次输出的数据都是随机的。 问题二:随机生成两个班里五个人的学号,且并不重复。 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define 阅读全文
posted @ 2025-10-19 16:55 leozhuyuhao 阅读(10) 评论(1) 推荐(0)
摘要: task1: int main(){ printf(" o o\n"); printf(" <H> <H>\n "); printf("I I I I\n"); return 0; } int main(){ printf(" o \n"); printf(" <H> \n "); printf(" 阅读全文
posted @ 2025-09-28 12:21 leozhuyuhao 阅读(11) 评论(1) 推荐(0)