摘要: 任务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("%p 阅读全文
posted @ 2025-11-16 17:37 0721绫地宁宁 阅读(10) 评论(1) 推荐(0)
摘要: #include <stdio.h> 2 3 char score_to_grade(int score); 4 5 int main(){ 6 int score; 7 char grade; 8 9 while(scanf("%d",&score) != EOF){ 10 11 grade = 阅读全文
posted @ 2025-10-30 22:37 0721绫地宁宁 阅读(7) 评论(1) 推荐(0)
摘要: 任务1 问题1:生成一个随机数 问题2:生成一个随机学号 任务2 问题1:会把上次运行的结果加进去 问题2:继续循环 任务3 #include <stdio.h> int main() { char ch; while ((ch = getchar()) != EOF) { if (ch == '\ 阅读全文
posted @ 2025-10-16 18:55 0721绫地宁宁 阅读(12) 评论(1) 推荐(0)
摘要: 任务1.1 1 #include <stdio.h> 2 int main() 3 { 4 printf(" O \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 printf(" O \n"); 8 printf("<H>\n"); 9 printf("I 阅读全文
posted @ 2025-09-26 09:26 0721绫地宁宁 阅读(35) 评论(1) 推荐(0)