码迷,mamicode.com
首页 >  
搜索关键字:fopen fclose fread fwrite fseek    ( 1787个结果
实验七
// 将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
实验7
#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语言实现文件的操作
```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
实验7
// 将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
1787条   上一页 1 ... 12 13 14 15 16 ... 179 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!