摘要: task1.c 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 printf("sizeof(x) = %d\n", sizeof( 阅读全文
posted @ 2025-11-16 22:58 叶永祺 阅读(6) 评论(1) 推荐(0)
摘要: task1.c 1 #include<stdio.h> 2 3 char score_to_grade(int score); 4 5 int main() 6 { 7 int score; 8 char grade; 9 10 while(scanf("%d", &score) != EOF) { 阅读全文
posted @ 2025-10-30 00:44 叶永祺 阅读(10) 评论(1) 推荐(0)
摘要: task1.c 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 #define N1 80 7 #define N2 35 8 9 int main(){ 10 int cnt; 11 int 阅读全文
posted @ 2025-10-18 09:33 叶永祺 阅读(10) 评论(1) 推荐(0)
摘要: task2.c 1 #include <stdio.h> 2 3 int main() 4 { 5 double a, b, c; 6 7 scanf("%lf%lf%lf", &a, &b, &c); 8 9 if((a+b>c)&&(b+c>a)&&(a+c>b)) 10 printf("能构成 阅读全文
posted @ 2025-10-08 11:44 叶永祺 阅读(5) 评论(1) 推荐(0)