📄 adjacenttable.h
字号:
#ifndef ADJACENT_TABLE_HEADER#define ADJACENT_TABLE_HEADER#include"Vertex.h"#include"Edge.h"using namespace std;class AdjacentTable
{
private:
Vertex *start;
int numOfVertices;
int numOfEdges;
public:
AdjacentTable();
int GetValueByPos(int pos) const;
int GetPosByValue(int value) const;
char GetWeightByPos(int v1, int v2) const;
char GetWeightByValue(int value1, int value2) const;
void SetValue(int value, int pos);
void InsertVertex(int value);
void InsertEdgeByPos(int v1, int v2, char weight);
void InsertEdgeByValue(int value1, int value2, char weight);
void RemoveAllEdges(void);
void Clear(void);
int* Closure(int *T);
int* Move(int *T, char ch);
void OutputNFA(void); ~AdjacentTable();
};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -