![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
【文件的输入输出】
阿金在森林
这个作者很懒,什么都没留下…
展开
-
C语言文件的输入输出知识点
文件类型指针 定义文件指针变量的一般形式为: FILE *文件结构指针变量名 例如:FILE *fp; 注意:只有通过文件指针,才能调用相应的文件。 文件的打开(fopen函数) 常用以下方式打开文件: FILE *fp; if ((fp=fopen("file1", "r")) ==NULL ) {printf("cannot open this fil原创 2015-07-11 09:25:45 · 1651 阅读 · 0 评论 -
文件的输入输出_歌曲管理系统
#include #include #include #include int i=0; struct song /*结构体数组*/ { char writer[20]; char singer[20]; char time[20]; ch转载 2015-07-11 11:11:32 · 514 阅读 · 0 评论 -
C语言文件的输入输出_学生的信息
输入学生的有关信息,转存到磁盘文件上去: #include #define SIZE 3 struct Student{ char name[10]; int num; int age; char address[10]; }stu[SIZE];/*结构体数组*/ /*以下为输入函数*/ void save(){ FILE *fp; int i; if((fp=fopen("原创 2015-07-11 10:57:23 · 2370 阅读 · 0 评论