摘要: task4 代码 1 #include<stdio.h> 2 3 int main(){ 4 char ch; 5 int count=0; 6 FILE *fp; 7 8 fp=fopen("C:\\Users\\admin\\Desktop\\博客园\\实验7\\data4.txt","r"); 阅读全文
posted @ 2023-12-20 17:13 陈熠涛 阅读(29) 评论(0) 推荐(0)
摘要: task4 代码 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 sal 阅读全文
posted @ 2023-12-11 19:57 陈熠涛 阅读(22) 评论(0) 推荐(0)
摘要: task1_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 * 阅读全文
posted @ 2023-11-27 19:39 陈熠涛 阅读(28) 评论(0) 推荐(0)
摘要: task1 代码 1 #include<stdio.h> 2 #define N 4 3 4 void test1(){ 5 int a[N]={1,9,8,4}; 6 int i; 7 8 printf("sizeof(a) = %d\n",sizeof(a)); 9 10 for(i=0;i<N 阅读全文
posted @ 2023-11-13 22:41 陈熠涛 阅读(19) 评论(0) 推荐(0)
摘要: task1 代码 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 te 阅读全文
posted @ 2023-10-30 20:59 陈熠涛 阅读(27) 评论(0) 推荐(0)
摘要: task1 代码 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 9 int main(){ 10 int numbe 阅读全文
posted @ 2023-10-16 21:03 陈熠涛 阅读(28) 评论(0) 推荐(0)
摘要: task1_1 编码 1 #include <stdio.h> 2 3 int main(){ 4 printf(" o \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 8 return 0; 9 10 } 运行结果 task1_2 编码 1 #inclu 阅读全文
posted @ 2023-09-30 15:34 陈熠涛 阅读(45) 评论(0) 推荐(0)