摘要: 任务四 1 #include<stdio.h> 2 int main() 3 { 4 char a; 5 int count=0; 6 FILE *fp; 7 fp = fopen("data4.txt","r"); 8 if(fp==NULL) { 9 printf("fail to open\n 阅读全文
posted @ 2023-12-21 17:00 蔡文灿 阅读(2) 评论(0) 推荐(0)
摘要: 任务四 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 double sales_ 阅读全文
posted @ 2023-12-17 20:07 蔡文灿 阅读(7) 评论(0) 推荐(0)
摘要: 任务一 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 *pmin,int *pm 阅读全文
posted @ 2023-12-03 19:08 蔡文灿 阅读(7) 评论(0) 推荐(0)
摘要: 任务一截图 任务二 1 #include<stdio.h> 2 #include<string.h> 3 4 #define N 80 5 6 void swap_str(char s1[N],char s2[N]); 7 void test1(); 8 void test2(); 9 10 int 阅读全文
posted @ 2023-11-19 21:45 蔡文灿 阅读(8) 评论(0) 推荐(0)
摘要: 实验一 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 #include<windows.h> 5 #define N 80 6 7 void print_text(int line,int col,char text[]) 阅读全文
posted @ 2023-11-05 19:48 蔡文灿 阅读(7) 评论(0) 推荐(0)
摘要: 实验一 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 #define N1 374 7 #define N2 465 8 int main() 9 { 10 int number; 11 i 阅读全文
posted @ 2023-10-19 19:16 蔡文灿 阅读(5) 评论(0) 推荐(0)
摘要: 实验任务一 1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 printf(" 0 \n"); 6 printf("<H>\n"); 7 printf("| |\n"); 8 printf(" 0 \n"); 9 printf(" 阅读全文
posted @ 2023-09-30 23:43 蔡文灿 阅读(54) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示