发布
loading-left
loading loading loading
loading-right

加载中

个人主页
TA还没有准备介绍自己
TA的源代码 (1)
VC++ 依据特定字符拆分字符串
暂无评分
intCFileFun::SplitCString(CStringstrIn,CStringArray&strAryRe,LPCTSTRlpstr){ASSERT(lpstr);strAryRe.RemoveAll();intlen1=strIn.GetLength();intlen2=_tcslen(lpstr);if(0==len1||0==len2){return0;}intpos1=0,pos2=0;while((pos2=strIn.Find(lpstr,pos1))!=-1){strAryRe.Add(strIn.Mid(pos1,pos2-pos1));pos1=pos2+len2;}//加上最一个...if(len1>pos1+1){strAryRe.Add(strIn.Mid(pos1));}returnstrAryRe.GetSize();}
mysky10086@163.com
2018-05-27
0
1
没有更多了~