CString str; str.Format("前景:%+.1d ",f); pDoc->SetTitle(str); 红色部分很重要,如果要改成%d就会出错,提示为strex.cpp中的681行错误。 貌似这是6.0的一个bug。以后知道这代表什么意思的时候要记下来。 除此之外,在format时,尽量使用常量字符串,能使用数组,不使用指针;