CString strDes(_T("600000 浦发银行 1.000 0.000 0.000 0.000 1.000 0.000 1.000 0.000 0.000 0.000 "));//中间以/t隔开
CString strGet(_T(""));
CStringArry strArry;
while (AfxExtractSubString(strGet, s, i++, '/t'))
{
strArry.Add(strGet);
}
int d = strArry.GetSize();
for (int j=0; j<d; j++)
{
MessageBox(strArry.GetAt(j));
}
OR
CString str = "abc$中国$12345$,。‘ ";
char a1[8],a2[8],a3[8],a4[8];
sscanf(str,"%[^$]$%[^$]$%[^$]$%[^&]",a1,a2,a3,a4);
AfxMessageBox(str);
AfxMessageBox(a1);
AfxMessageBox(a2);
AfxMessageBox(a3);
AfxMessageBox(a4);