📄 csave.h
字号:
#ifndef my_cregert
#define my_cregert
#include <iostream>
using namespace std;
#include <fstream>
#include <stack>
#include <vector>
struct StSaveInfo
{
//int nSteps;
UINT uRoleId;
UINT uTargetId;
UINT uOldRow;
UINT uOldCol;
UINT uNewRow;
UINT uNewCol;
__declspec(dllexport) friend ostream & operator<<(ostream &os,StSaveInfo &s);
__declspec(dllexport) friend istream & operator>>(istream &is,StSaveInfo &s);
};
class CSave
{
public:
__declspec(dllexport) CSave(){}
__declspec(dllexport) int size(){return (int)SaveInfo.size();}
__declspec(dllexport) void pop();
__declspec(dllexport) void push(StSaveInfo &SaveMsg);
__declspec(dllexport) void SaveChess();
public:
stack<StSaveInfo> SaveInfo;
vector<StSaveInfo> VToFile; //用来将走棋信息读入文件
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -