
int CString::ReverseFind(TCHAR ch);
int pos = S1.ReverseFind('A') + 1;
CString S1_1 = S1.Left(pos),S1_2 = S1.Right(pos);
C++:用stl的find/find_if函数找到token位置,然后用迭代器提取
C:用strtok函数寻找toke的起点,然后循环。

int CString::ReverseFind(TCHAR ch);
int pos = S1.ReverseFind('A') + 1;
CString S1_1 = S1.Left(pos),S1_2 = S1.Right(pos);
C++:用stl的find/find_if函数找到token位置,然后用迭代器提取
C:用strtok函数寻找toke的起点,然后循环。