配置文件恢复(双重匹配)

#include
using namespace std;
void split(char a[],vector&v)
{
    char*p=strtok(a," ");
    while(p!=NULL)
    {
        string t;
        for(int i=0; i
    string ans[5]= {"board fault","where to add","no board at all","impossible","install first"};
 
  
    while(gets(a)!=NULL)
    {
        vectorv;
        split(a,v);
        if(v.size()==1)
        {
            if(cmd1.find(v[0])==0)
            {
                cout<

你可能感兴趣的:(IT)