摘要: task4 源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 int main(){ 5 FILE *fp; 6 char ch; 7 int cnt=0; 8 9 fp = fopen("d:\\date\\data4.txt","r"); 10 i 阅读全文
posted @ 2023-12-20 18:03 Meng36 阅读(21) 评论(0) 推荐(0)
摘要: task4 源代码 1 #include <stdio.h> 2 #include<string.h> 3 #define N 10 4 5 typedef struct { 6 char isbn[20]; // isbn号 7 char name[80]; // 书名 8 char author 阅读全文
posted @ 2023-12-15 14:35 Meng36 阅读(30) 评论(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 *pmi 阅读全文
posted @ 2023-11-29 20:33 Meng36 阅读(31) 评论(0) 推荐(0)
摘要: task1_1 task1_1源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 #define N 4 4 5 void test1(){ 6 int a[N]={1,9,8,4}; 7 int i; 8 9 printf("sizeof(a)=%d\n" 阅读全文
posted @ 2023-11-16 17:07 Meng36 阅读(36) 评论(0) 推荐(0)
摘要: task1 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-31 19:19 Meng36 阅读(34) 评论(0) 推荐(0)
摘要: 实验1 实验1的源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 #define N 5 5 #define N1 374 6 #define N2 465 7 int main(){ 8 int number; 9 阅读全文
posted @ 2023-10-20 12:47 Meng36 阅读(52) 评论(0) 推荐(0)
摘要: 1.实验1 实验1_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 } 实验1_1运行结果截图 task1_1.c 垂直小人 阅读全文
posted @ 2023-10-02 15:10 Meng36 阅读(144) 评论(0) 推荐(0)