摘要: 任务4: 源代码: # include<stdio.h> int main() { FILE *p; char ch; int cnt_zf=0,cnt_hs=1; p=fopen("D:/democ.1/data4.txt","r"); if(!p) printf("fail to open"); 阅读全文
posted @ 2024-12-30 09:09 布莱恩韩 阅读(7) 评论(0) 推荐(0)
摘要: 任务4: 源代码: #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 阅读全文
posted @ 2024-12-18 22:28 布莱恩韩 阅读(5) 评论(0) 推荐(0)
摘要: 任务一 task1_1 源代码: #include<stdio.h> # define N 5 void input(int x[],int n); void output(int x[],int n); void find_min_max(int x[],int n,int *pmin,int * 阅读全文
posted @ 2024-12-07 11:31 布莱恩韩 阅读(10) 评论(0) 推荐(0)
摘要: 任务一 源代码: # include<stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d",&score)!=EOF) { grade=score_to_grade( 阅读全文
posted @ 2024-10-26 16:05 布莱恩韩 阅读(12) 评论(0) 推荐(0)
摘要: 任务一 源代码: # include<stdio.h> # include<stdlib.h> # include<time.h> #define N 5 #define N1 397 #define N2 476 #define N3 21 int main() { int cnt; int ra 阅读全文
posted @ 2024-10-10 16:48 布莱恩韩 阅读(11) 评论(0) 推荐(0)
摘要: 任务一: 源代码 # include<stdio.h> int main() { printf(" O O\n"); printf("<H> H\n"); printf("I I I I\n"); return 0; } # include<stdio.h> int main() { printf( 阅读全文
posted @ 2024-09-29 15:34 布莱恩韩 阅读(14) 评论(0) 推荐(0)