1.
CString str,str1;
str1 = str.Left(5);
第二,比如有这样的一个字符串:
CString S1;
S1 ="I could see you";
我想把这几个单词一个一个的读出来,我该怎么做?(PS:只能用空格来分辨,因为里面的单词都是不确定的)
2.
CString Sl,tmp;
for(int l=0;l<=Sl.GetLength(),l++);
{
if(Sl.Find(" ",l)==-1)break;
tmp = Sl.Mid(l,Sl.Find(" ",l+1));
}