正則分析的程序实现.docVIP

  • 3
  • 0
  • 约1.48万字
  • 约 17页
  • 2017-01-14 发布于重庆
  • 举报
正則分析的程序实现

#includeiostream #includestack #includevector using namespace std; int NFASNum;//NFA状态数 vectorint* rec; string str2; int Accept[100]={0}; //边类 class Edge { public: int num; int pos; char weight; Edge *next; public: Edge() { num = -1; pos = -1; next = NULL; } Edge(int Num, int Pos, char ch) { num= Num; pos = Pos; weight = ch; next = NULL; } }; // 顶点类 class Vertex { public: int vnum; Vertex *next; Edge *out; public: Vertex() { vnum = -

文档评论(0)

1亿VIP精品文档

相关文档