n2d.h
来自「一个自己写的NFA转DFA的程序」· C头文件 代码 · 共 24 行
H
24 行
//a class for changing NFA to DFA
#include<vector>
#include<stack>
using namespace std;
class N2D
{
int m;
int value1[2],value2[2],value3[2],value4[2],value5[2],value6[2];
public:
vector < vector <vector<int> > > NFA;//Discribe the NFA with three-dimensional array;
vector<vector<vector<int> > > DFA;//Discribe the NFA with three-dimensional array;
vector <vector <int> > result;
stack <int> s;//store the temp state
public:
N2D();
bool change();
bool check(int n);
void sort(vector<int> &x);
void push(int m);
int pop();
void printDFA();
void printNFA();
void Change(int x);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?