#define Temp "temp"
char txt_1[50],t1,t2;
char *spt;
//txt_1=GetTagChar(Temp); //返回类型:char*
strcpy(txt_1,GetTagChar(Temp));
spt=strchr(txt_1,'\_'); //返回类型:char*
*spt++;
t1=*spt;
*spt++;
*spt++;
t2=*spt;
switch(t1){
case '2':
if (t2=='1')
{
*spt='2';
SetTagChar(Temp,txt_1); //返回类型:BOOL
}
其中temp是内部变量。
不太清楚以下内容:
spt=strchr(txt_1,'\_');的作用是什么?
if (t2=='1'),t2可能等于‘1’吗?
strcpy(txt_1,GetTagChar(Temp));是把temp字符copy到txt_1 中还是把temp变量对应的字符copy到txt_1中