摘要: 实验1: #include<stdio.h> #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 @ 2024-11-05 15:14 hexu7 阅读(4) 评论(0) 推荐(1) 编辑
摘要: #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_grade(scor 阅读全文
posted @ 2024-10-26 18:40 hexu7 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 实验1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 397 #define N2 476 #define N3 21 int main() { int cnt; int random_ 阅读全文
posted @ 2024-10-09 23:04 hexu7 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 实验1 #include int main() { printf(" O \n"); printf("\n"); printf("I I\n"); return 0; } #include int main() { printf(" O \n"); printf("\n"); printf("I I 阅读全文
posted @ 2024-09-25 22:37 hexu7 阅读(5) 评论(0) 推荐(0) 编辑