dfaminhash.cpp

来自「一个类似STL的自动机的源代码库」· C++ 代码 · 共 34 行

CPP
34
字号
#include <dfa.h>#include <ccopy.h>#include <stream.h>#include <tools.h>#include <iostream>#include <iterator>using namespace std;int main(int argc, char** argv){  config c(argc, argv, 1);  /*      DFA_min_hash<> dfa;  string word;  int wc;  for(wc = 0, getline(cin,word); !cin.eof(); ++wc, getline(cin,word))     dfa.insert(word.begin(), word.end());  if (c.verbose_mode) {    cerr << "word count " << wc << endl << "states " << dfa.state_count();    cerr << endl << "transitions " << dfa.trans_count() << endl;  }  DFA_stream out(cout);  if (c.state_mark)    clone(out, dfirst_markc(dfa));  else    clone(out, dfirstc(dfa));  */  return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?