摘要: 4.task_4 1 #include <stdio.h> 2 #include <string.h> 3 #define N 10000 4 5 int main() 6 { 7 int count,i,t=0; 8 char x[N]; 9 FILE *fp; 10 fp=fopen("D:\\ 阅读全文
posted @ 2023-12-17 19:16 zxy溢 阅读(90) 评论(0) 推荐(0)
摘要: 4.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 sal 阅读全文
posted @ 2023-12-14 19:54 zxy溢 阅读(88) 评论(0) 推荐(0)
摘要: 1.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 阅读全文
posted @ 2023-11-27 18:45 zxy溢 阅读(23) 评论(0) 推荐(0)
摘要: 1.task_1 (1) 1 #include <stdio.h> 2 #define N 4 3 4 void test1() 5 { 6 int a[N]={1,9,8,4}; 7 int i; 8 printf("sizeof(a)=%d\n",sizeof(a)); 9 for (i=0;i 阅读全文
posted @ 2023-11-17 16:22 zxy溢 阅读(32) 评论(0) 推荐(0)
摘要: 1.task_1 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,cha 阅读全文
posted @ 2023-10-30 19:01 zxy溢 阅读(26) 评论(0) 推荐(0)
摘要: 1.task_1 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 { 11 int n 阅读全文
posted @ 2023-10-16 19:31 zxy溢 阅读(40) 评论(0) 推荐(0)
摘要: 1.task.1 1 #include <stdio.h> 2 int main() 3 { 4 printf(" O \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 8 return 0; 9 } task.1_1 1 #include <stdio.h 阅读全文
posted @ 2023-10-03 16:09 zxy溢 阅读(150) 评论(0) 推荐(0)