CString shuzi,biaodianfuhao,hanzi,daxiezimu,xiaoxiezimu; for (int i = 0 ; i <str.GetLength();i++) { int unicode = (int)str.GetAt(i); if (unicode <= "9" && unicode >= "0") { shuzi += str.GetAt(i); } else if (unicode <= "z" && unicode >= "a") ...