fileinout.h

来自「很好的学习C++源码,基于C++版学生管理系统」· C头文件 代码 · 共 25 行

H
25
字号
#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 + =
减小字号Ctrl + -
显示快捷键?