摘要: 实验任务4 #include<stdio.h> #define N 1000 int main(){ FILE *fp; fp=fopen("data4.txt","r"); if(!fp){ perror(""); return 0; } int line=0,count=0; char ch[N 阅读全文
posted @ 2025-12-27 22:25 tensiontension 阅读(10) 评论(1) 推荐(0)
摘要: 实验任务4 #include<stdio.h> #define N 10 typedef struct{ char isbn[20]; char name[80]; char author[20]; double sales_price; int sales_count; }Book; void o 阅读全文
posted @ 2025-12-21 00:51 tensiontension 阅读(15) 评论(1) 推荐(0)
摘要: 实验任务1 task1.c #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 *pmax 阅读全文
posted @ 2025-12-07 01:56 tensiontension 阅读(25) 评论(1) 推荐(0)
摘要: 实验任务1 #include<stdio.h> #define N 4 #define M 2 void test1(){ int x[N]={1,9,8,4}; int i; printf("sizeof(x)=%d\n",sizeof(x)); for(i=0;i<N;++i) printf(" 阅读全文
posted @ 2025-11-11 21:09 tensiontension 阅读(12) 评论(1) 推荐(0)
摘要: 实验任务1 #include<stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d",&score)!=EOF){ grade=score_to_grade(score 阅读全文
posted @ 2025-10-24 15:03 tensiontension 阅读(14) 评论(1) 推荐(0)
摘要: 实验任务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_no; 阅读全文
posted @ 2025-10-14 12:52 tensiontension 阅读(9) 评论(1) 推荐(0)
摘要: 实验任务1 task1.1c #include<stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); re 阅读全文
posted @ 2025-09-28 12:49 tensiontension 阅读(24) 评论(1) 推荐(0)