摘要: task 4 源代码: 1 #include<stdio.h> 2 3 int main(){ 4 FILE *fp; 5 fp = fopen("C:\\Users\\jr787\\Desktop\\实验7数据文件及部分代码_gbk\\data4.txt","r"); 6 if(fp == NUL 阅读全文
posted @ 2025-12-30 22:58 追随天光 阅读(8) 评论(1) 推荐(0)
摘要: task 4 源代码: 1 #include<stdio.h> 2 #define N 10 3 4 typedef struct{ 5 char isbn[20]; 6 char name[80]; 7 char author[80]; 8 double sales_price; 9 int sa 阅读全文
posted @ 2025-12-21 15:57 追随天光 阅读(8) 评论(1) 推荐(0)
摘要: task 1_1 源代码: 1 #include<stdio.h> 2 #define N 5 3 4 void input(int x[],int n); 5 void output(int x[],int n); 6 void find_min_max(int x[],int n,int *pm 阅读全文
posted @ 2025-12-11 11:22 追随天光 阅读(14) 评论(1) 推荐(0)
摘要: task 1 源代码: 1 #include<stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1(){ 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 printf("sizeof(x) = %d\n",sizeof 阅读全文
posted @ 2025-11-16 16:59 追随天光 阅读(15) 评论(1) 推荐(0)
摘要: task 1 源代码: 1 #include<stdio.h> 2 3 char score_to_grade(int score); 4 5 int main(){ 6 int score; 7 char grade; 8 9 while(scanf("%d",&score)!= EOF){ 10 阅读全文
posted @ 2025-10-28 15:07 追随天光 阅读(19) 评论(1) 推荐(0)
摘要: task 1 源代码: #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define N1 80 #define N2 35 int main(){ int cnt; int random_major,random 阅读全文
posted @ 2025-10-18 11:13 追随天光 阅读(9) 评论(1) 推荐(0)
摘要: task1-1 源代码: 1 #include <stdio.h> 2 int main () 3 { 4 printf(" O \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 printf(" O \n"); 8 printf("<H>\n"); 9 p 阅读全文
posted @ 2025-09-29 09:15 追随天光 阅读(105) 评论(1) 推荐(0)