str3是CString两美吧,CString有个函数直接就可以转换了,使用方法:***.makeupper()思充;你的代码之所以无效,360问答是因为ch=***.getat 是赋值,之后你只是将ch改成大写,str3括林各停集相没有变化。