📄 test.cpp
字号:
#include <astl.h>
#include <dfa.h>
#include <vector>
#include <iterator>
int main()
{
using namespace std;
DFA_matrix<> A;
DFA_matrix<>::state_type q = A.new_state();
DFA_matrix<>::state_type p = A.new_state();
A.set_trans(q, 'a', p);
A.initial(q);
A.final(p) = true;
DFA_matrix<>::state_type Q1[10];
A.new_state(10, Q1);
vector<DFA_matrix<>::state_type> Q2(10);
A.new_state(10, Q2.begin());
vector<DFA_matrix<>::state_type> Q3;
A.new_state(10, back_inserter(Q3));
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -