摘要: 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; 阅读全文
posted @ 2025-04-16 17:02 周丹婷 阅读(13) 评论(0) 推荐(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(sc 阅读全文
posted @ 2025-04-03 21:27 周丹婷 阅读(14) 评论(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 < N; ++i) { numbe 阅读全文
posted @ 2025-03-18 21:14 周丹婷 阅读(9) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/2005-z 阅读全文
posted @ 2025-03-16 17:55 周丹婷 阅读(6) 评论(0) 推荐(0)
摘要: 1.1 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } 阅读全文
posted @ 2025-03-04 16:39 周丹婷 阅读(5) 评论(0) 推荐(0)