📄 fileinout.h
字号:
#ifndef FILEINOUT_H
#define FILEINOUT_H
#include "studentlist.h" //学生链表头文件
#include "studentobject.h" //学生对象类头文件
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <conio.h>
using namespace std;
class CFileInOut //文件读\写类
{
private:
static int m_nTime; //记录文件读取,保存循环的次数
public:
static bool FileRead(CStudentList* stu); //函数从文件中读取数据并创建学生链表
static bool FileWrite(CStudentObject* pHead,int nTotal); //函数将学生键表数据保存到文件
CFileInOut();
virtual ~CFileInOut();
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -