摘要: 实验4 实验任务1 代码: 1 #include <stdlib.h> 2 #include <stdio.h> 3 #define N 4 4 #define M 2 5 6 void test1() { 7 int x[N] = {1, 9, 8, 4}; 8 int i; 9 10 // 输出 阅读全文
posted @ 2025-04-18 16:53 朱云帅 阅读(4) 评论(0) 推荐(0)
摘要: 实验任务1 代码: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include <stdlib.h> 4 5 char score_to_grade(int score); // 函数声明 6 7 int main() { 8 阅读全文
posted @ 2025-04-07 16:08 朱云帅 阅读(2) 评论(0) 推荐(0)
摘要: 实验课程2 实验任务1 代码: 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(tim 阅读全文
posted @ 2025-03-18 17:29 朱云帅 阅读(6) 评论(0) 推荐(0)
摘要: 实验任务一: 程序: 1 //打印一个字符小人 2 3 #include<stdio.h> 4 #include<stdlib.h> 5 int main() 6 { 7 printf(" o \n"); 8 printf("<H>\n"); 9 printf("I I\n"); 10 11 sys 阅读全文
posted @ 2025-03-06 13:03 朱云帅 阅读(14) 评论(0) 推荐(0)