拆分字符串 带,的拆分

CStringArray saCf;
int iPos = -1;
while ((iPos=sValue.Find(','))!=-1)
{
saCf.Add(sValue.Left(iPos));
sValue.Delete(0, iPos + 1);
}
saCf.Add(sValue);

posted @ 2015-09-07 08:46  xzh1993  阅读(159)  评论(0编辑  收藏  举报