// 将file1.txt中小写字母转换成大写后,另存为file2.txt #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen("file1.txt ...
分类:
其他好文 时间:
2020-01-01 10:06:46
阅读次数:
77
part1 // 将file1.txt中小写字母转换成大写后,另存为file2.txt #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen("fil ...
分类:
其他好文 时间:
2020-01-01 10:03:05
阅读次数:
90
验证性实验二 仍然正确 总结: 二进制文件与文本文件的区别: 文本文件编辑器就可以读写,二进制文件需要特别的解码器。 文本文件只能存储char型字符变量,二进制文件可以存储char/int等各种变量值。 #include <stdio.h> #include <stdlib.h> #define N ...
分类:
其他好文 时间:
2020-01-01 09:38:54
阅读次数:
78
// 将file1.txt中小写字母转换成大写后,另存为file2.txt #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen("file1.txt ...
分类:
其他好文 时间:
2020-01-01 09:24:49
阅读次数:
62
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2020-01-01 00:00:59
阅读次数:
97
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-31 23:50:40
阅读次数:
66
《实验七》 验证性实验1: 验证性内容2: 验证性内容3: 验证性内容4: 以二进制形式存入file4.dat后,内容不可以直接读出 编程练习: #include <stdio.h>#include <stdlib.h>#include <string.h>const int N = 5;typed ...
分类:
其他好文 时间:
2019-12-31 17:08:02
阅读次数:
83
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-31 14:26:21
阅读次数:
59
```c #include int main(int argc, char* argv[]) { // 创建文件类型 FILE* file; char buf[1024] = {0, }; // a 是追加,+ 文件不存在可以进行创建 file = fopen("1.txt", "a+"); // ... ...
分类:
编程语言 时间:
2019-12-31 10:54:23
阅读次数:
102
// 将file1.txt中小写字母转换成大写后,另存为file2.txt #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen("file1.txt ...
分类:
其他好文 时间:
2019-12-30 00:22:18
阅读次数:
61