摘要: 任务1 task1.c 1 int main() { 2 int score; 3 char grade; 4 5 while (scanf_s("%d", &score) != EOF) { 6 grade = score_to_grade(score); // 函数调用 7 printf("分数 阅读全文
posted @ 2025-04-07 19:13 tingying 阅读(9) 评论(0) 推荐(0)
摘要: 任务1 task1.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 7 int main() { 8 int number; 9 int i; 10 11 srand(time(0) 阅读全文
posted @ 2025-03-18 20:38 tingying 阅读(11) 评论(0) 推荐(0)
摘要: 实验任务1 源代码 task1_1.c 1 //打印一个字符小人 2 3 #include <stdio.h> 4 int main() 5 { 6 printf(" O \n"); 7 printf("<H>\n"); 8 printf("I I\n"); 9 printf(" O \n"); 1 阅读全文
posted @ 2025-03-05 19:26 tingying 阅读(15) 评论(3) 推荐(0)