摘要: 实验任务一 运行截图: 回答问题: 1.函数score_to_grade的功能是作为一个新函数,对输入的分数进行ABCDE的打分 形参类型:int类型 返回值类型:char类型 2.类型不匹配:ans是char类型,修改后是const char类型,与char类型不匹配 缺少break语句:导致如果 阅读全文
posted @ 2025-04-07 14:45 黄卓尔 阅读(4) 评论(0) 推荐(0)
摘要: 实验任务一 源代码: 点击查看代码 #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 < 阅读全文
posted @ 2025-03-23 12:41 黄卓尔 阅读(3) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/hze305104 阅读全文
posted @ 2025-03-17 13:54 黄卓尔 阅读(7) 评论(0) 推荐(0)
摘要: 实验任务一: 源代码: 点击查看代码 #include <stdio.h> int main() { printf(" o o\n"); printf("<H> <H>\n"); printf("I I I I\n"); return 0; } 运行截图: ![](https://img2024.c 阅读全文
posted @ 2025-03-09 16:22 黄卓尔 阅读(4) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示