概述
代码:
#include<stdio.h>
#include<string.h>
#include<string>
#include<vector>
#define MAXN 105
using namespace std;
char rule[MAXN][MAXN];
char name[MAXN][MAXN];
int n,m;
vector<string> value;//参数值
bool deal_str(char *str, char* rule)
{
value.clear();
int i=0,j=0;
while(i<strlen(str) && j<strlen(rule))
{
if(rule[j]=='<')
{
string tmp;
if(rule[j+1]=='i')
{
int flag=0;//判断前导0的标志
while(str[i]!='