16,472
社区成员
发帖
与我相关
我的任务
分享
CString str = _T("2014-3-14-1-12");
int a, b, c, d, e;
_stscanf_s(str, TEXT("%d-%d-%d-%d-%d"), &a, &b, &c, &d, &e);
CString str="2014-3-14-1-12";//
int n=0;
int start=0;
while(start=str.Find('-',start))
{
afxDump << start << "\n";// 4 6 9
start ++;
n++;
if(n==3)
{
break;
}
}