CString str = "字符串";//其实str是什么无所谓
const type_info &typeif = typeid(str);
CString strType;
strType.Format("%s",typeif.name());
AfxMessageBox(strType);//输出str的类型名
const type_info &typeif = typeid(str);
CString strType;
strType.Format("%s",typeif.name());
AfxMessageBox(strType);//输出str的类型名