摘要: 4.实验4 1 #include<stdio.h> 2 #include<string.h> 3 #include <string.h> 4 #define M 999 5 int main(){ 6 char x[M]; 7 FILE *fp; 8 int len,t=0,a=0; 9 if((f 阅读全文
posted @ 2023-12-18 16:48 If-You 阅读(24) 评论(0) 推荐(0)
摘要: 4.任务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 sales_ 阅读全文
posted @ 2023-12-11 17:27 If-You 阅读(59) 评论(0) 推荐(0)
摘要: 1.c 1-1.c 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 *p 阅读全文
posted @ 2023-11-27 19:19 If-You 阅读(16) 评论(0) 推荐(0)
摘要: 1.任务1 1-1.c 1 #include <stdio.h> 2 #define N 4 3 4 void test1() { 5 int a[N] = {1, 9, 8, 4}; 6 int i; 7 printf("sizeof(a) = %d\n", sizeof(a)); 8 for ( 阅读全文
posted @ 2023-11-14 10:42 If-You 阅读(47) 评论(0) 推荐(0)
摘要: 1.实验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,char text[ 阅读全文
posted @ 2023-10-30 20:57 If-You 阅读(34) 评论(0) 推荐(0)
摘要: 1.实验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 number; 阅读全文
posted @ 2023-10-16 21:05 If-You 阅读(20) 评论(0) 推荐(0)
摘要: 1. 实验任务1 1.c 1 #include <stdio.h> 2 3 int main () 4 { 5 printf(" o \n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 9 return 0; 10 } 1-1.c 1 #include <st 阅读全文
posted @ 2023-10-06 10:53 If-You 阅读(156) 评论(0) 推荐(0)