typedef struct tagFilterKey{
char sFilterKey[70];
}FilterKey;typedef CTypedPtrList<CPtrList,FilterKey*> CFilterKeyList;
CFilterKeyList m_FilterKey;
char* sInfo="我的未来不是梦"
CFilterKeyList& tFilterKey=pView->m_FilterKey;//pview是当前视图
if (!tFilterKey.IsEmpty())
{
POSITION pos1 =tFilterKey.GetHeadPosition();
POSITION postmp1=pos1;
while(pos1 !=NULL)
{
FilterKey* p=(FilterKey*)tFilterKey.GetNext(pos1);
if(postmp1==NULL)
break;
//strcmp(sInfo,p->sFilterKey)
我在此处如何判断sInfo中含有p->sFilterKey就跳出循环啊?
我怎么写,各位帮帮我?
}
postmp1=pos1;
}
char sFilterKey[70];
}FilterKey;typedef CTypedPtrList<CPtrList,FilterKey*> CFilterKeyList;
CFilterKeyList m_FilterKey;
char* sInfo="我的未来不是梦"
CFilterKeyList& tFilterKey=pView->m_FilterKey;//pview是当前视图
if (!tFilterKey.IsEmpty())
{
POSITION pos1 =tFilterKey.GetHeadPosition();
POSITION postmp1=pos1;
while(pos1 !=NULL)
{
FilterKey* p=(FilterKey*)tFilterKey.GetNext(pos1);
if(postmp1==NULL)
break;
//strcmp(sInfo,p->sFilterKey)
我在此处如何判断sInfo中含有p->sFilterKey就跳出循环啊?
我怎么写,各位帮帮我?
}
postmp1=pos1;
}
CString sInfo1;
sInfo.Format("%s",sInfo);
int x=sInfo.Find(p->sFilterKey);///////返回位置
if(x!=-1)break;
typedef struct tagFilterKey{
wchar_t sFilterKey[70];
}FilterKey;
wchar_t * sInfo=_T("我的未来不是梦");
All UNICODE version of strcmp:
wcscmp(const wchar_t *string1, const wchar_t *string2 );