摘要: 实验1 源代码 1 #include <stdio.h> 2 #include<stdlib.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 // 输出数组x占用的内 阅读全文
posted @ 2026-05-02 23:29 code_000 阅读(10) 评论(0) 推荐(0)
摘要: 实验任务一 源代码 1 #include<stdio.h> 2 3 char score_to_grade(int score); 4 5 int main(){ 6 int score; 7 int grade; 8 9 while(scanf("%d",&score)!=EOF) 10 { 11 阅读全文
posted @ 2026-04-18 10:49 code_000 阅读(8) 评论(0) 推荐(0)
摘要: 实验任务1 源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 int main() 6 { 7 int number; 8 int i; 9 10 srand(time(0)); // 阅读全文
posted @ 2026-04-01 16:46 code_000 阅读(4) 评论(0) 推荐(0)
摘要: 实验任务1 源代码1 1 #include<stdio.h> 2 #include<stdlib.h> 3 int main(){ 4 printf(" O \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 8 printf(" O \n"); 9 prin 阅读全文
posted @ 2026-03-18 16:04 code_000 阅读(10) 评论(0) 推荐(0)