algorithm.h

来自「用C++编写的产生文章的程序」· C头文件 代码 · 共 37 行

H
37 行
字号
#pragma once
#ifndef Algorithm_H
#define Algorithm_H
#include<string>
#include<iostream>
#include<deque>
#include<map>
#include<vector>
#include "share.h"
using std::string;
using std::ostream;
using std::istream;
using std::map ;
using std::deque ;
using std::vector ;

class algorithm
{
private:
   
    map<Prefix,vector<string> > table;  //状态表
public:
	algorithm()
	{
	}
	~algorithm()
	{
	}
	void build( Prefix &prefix,istream &in);
	void add(Prefix &prefix,const string &s);
	void generate(int nwords,ostream &out);


};
#endif

⌨️ 快捷键说明

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