摘要: task4 程序 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main(){ 5 FILE *fp; 6 int s1=0,s2=0; 7 char c; 8 fp=fopen("data4.txt","r"); 9 10 while(!fe 阅读全文
posted @ 2025-06-08 15:25 OasisShining 阅读(4) 评论(0) 推荐(0)
摘要: task4 程序 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 10 4 5 typedef struct { 6 char isbn[20]; // isbn号 7 char name[80]; // 书名 8 char author 阅读全文
posted @ 2025-05-29 21:12 OasisShining 阅读(11) 评论(0) 推荐(0)
摘要: task1_1 程序 1 #include <stdio.h> 2 #include<stdlib.h> 3 #define N 5 4 5 void input(int x[], int n); 6 void output(int x[], int n); 7 void find_min_max( 阅读全文
posted @ 2025-05-18 14:05 OasisShining 阅读(5) 评论(0) 推荐(0)
摘要: task1 程序 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 @ 2025-04-19 17:41 OasisShining 阅读(6) 评论(0) 推荐(0)
摘要: task1 程序 1 #include<stdio.h> 2 #include<stdlib.h> 3 char score_to_grade(int score); 4 5 int main(){ 6 int score; 7 char grade; 8 9 while(scanf("%d",&s 阅读全文
posted @ 2025-04-09 14:38 OasisShining 阅读(9) 评论(0) 推荐(0)
摘要: 实验2 task1 程序: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 int main() { 6 int number; 7 int i; 8 srand(time(0)); 9 f 阅读全文
posted @ 2025-03-23 15:59 OasisShining 阅读(6) 评论(0) 推荐(0)
摘要: 1.实验任务1 Task1_1程序 1 #include<stdlib.h> 2 #include<stdio.h> 3 int main() 4 { 5 printf(" O\n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 printf(" O\n"); 阅读全文
posted @ 2025-03-08 20:36 OasisShining 阅读(20) 评论(0) 推荐(1)