2023年12月20日

实验7

摘要: 实验7 实验7.1.1源码 // 将图书信息写入文本文件data1.txt #include <stdio.h> #define N 80 typedef struct { char name[N]; // 书名 char author[N]; // 作者 } Book; int main() { 阅读全文

posted @ 2023-12-20 16:59 Awayfyforever 阅读(14) 评论(0) 推荐(0)

2023年12月11日

实验6

摘要: 实验6 实验6.1源码 //文件的打开和关闭 /*#include<stdio.h> #include<stdlib.h> int main() { FILE *fp; if((fp=fopen("D:\\daima\\文件系统\\文件系统.sln","r"))==NULL) { printf("打 阅读全文

posted @ 2023-12-11 20:20 Awayfyforever 阅读(15) 评论(0) 推荐(0)

2023年11月27日

实验5

摘要: 实验5 实验5.1.1源码 #include <stdio.h> #include<stdlib.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], in 阅读全文

posted @ 2023-11-27 17:12 Awayfyforever 阅读(24) 评论(0) 推荐(0)

2023年11月13日

实验4

摘要: 实验4 实验4.1源码 #include<stdio.h> #include<stdlib.h> #define N 4 void test1() { int a[N] = {1, 9, 8, 4}; int i; // 输出数组a占用的内存字节数 printf("sizeof(a) = %d\n" 阅读全文

posted @ 2023-11-13 20:33 Awayfyforever 阅读(14) 评论(0) 推荐(0)

2023年10月31日

实验三

摘要: 实验3.1 实验3.1源码 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[ 阅读全文

posted @ 2023-10-31 09:43 Awayfyforever 阅读(19) 评论(0) 推荐(0)

2023年10月16日

实验2

摘要: 实验2.1 实验2.1代码 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define N1 374 #define N2 465 int main() { int number; int i; srand( t 阅读全文

posted @ 2023-10-16 22:12 Awayfyforever 阅读(20) 评论(0) 推荐(0)

2023年10月5日

实验1

摘要: 实验1.1 实验1.1源代码 #include<stdio.h> #include<stdlib.h> int main() { printf(" O O \n"); printf("<H> <H>\n"); printf("I I I I\n"); system("pause"); return 阅读全文

posted @ 2023-10-05 00:54 Awayfyforever 阅读(30) 评论(0) 推荐(0)

导航