2023年12月21日
摘要: 实验任务4 1 #include<stdio.h> 2 int main(){ 3 FILE *fp; 4 int i; 5 char ch; 6 fp=fopen("data4.txt","r"); 7 if(fp==NULL){ 8 printf("fail to open file\n"); 阅读全文
posted @ 2023-12-21 23:14 Sakana25 阅读(20) 评论(0) 推荐(0)
  2023年12月14日
摘要: 实验任务4 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 sale 阅读全文
posted @ 2023-12-14 11:17 Sakana25 阅读(35) 评论(0) 推荐(0)
  2023年11月28日
摘要: 实验任务1(1) 1 #include <stdio.h> 2 #define N 5 3 void input(int x[], int n); 4 void output(int x[], int n); 5 void find_min_max(int x[], int n, int *pmin 阅读全文
posted @ 2023-11-28 13:42 Sakana25 阅读(30) 评论(0) 推荐(0)
  2023年11月22日
摘要: 实验任务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 int main(){ 9 int number; 10 int 阅读全文
posted @ 2023-11-22 09:46 Sakana25 阅读(29) 评论(0) 推荐(0)
  2023年11月20日
摘要: 实验任务1(1) 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 9 for (i 阅读全文
posted @ 2023-11-20 10:44 Sakana25 阅读(28) 评论(0) 推荐(0)
  2023年10月30日
摘要: 实验任务1 1 #include<stdio.h> 2 #include<math.h> 3 #include <stdlib.h> 4 #include <time.h> 5 #include <windows.h> 6 #define N 80 7 void print_text(int lin 阅读全文
posted @ 2023-10-30 21:13 Sakana25 阅读(48) 评论(0) 推荐(0)
  2023年10月8日
摘要: 实验任务1(1) 1 #include<stdio.h> 2 int main(){ 3 printf(" O \n"); 4 printf("<H>\n"); 5 printf("I I\n"); 6 return 0; 7 } 结果演示 (2) 1 #include<stdio.h> 2 int 阅读全文
posted @ 2023-10-08 21:18 Sakana25 阅读(187) 评论(0) 推荐(0)