set.h
来自「编译原理LR(0)文法分析器 录入合法的LR(0)文法」· C头文件 代码 · 共 28 行
H
28 行
#pragma once
#include <vector>
using namespace std;
class Set
{
public:
Set(void);
~Set(void);
Set(const Set & set);
Set(char cChar);
bool Insert(char cInsert);
bool Delete(char cDelete);
bool Find(char cFind);
int FindPos(char cFind);
int Add(const Set & set);
int Sub(const Set & set);
int Size() const;
Set operator + (const Set & set);
Set operator - (const Set & set);
const Set operator = (const Set & set);
char GetAt(int iPos);
bool IsEmpty();
private:
vector <char> SetContent;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?