主题:求救....HELP....
大侠们,用foemate()函数怎么转换来的值不对啊?
void CTest001Dlg::Onqr()
{
// TODO: Add your control notification handler code here
UpdateData();
CString Info;
Info=m_name;
CString temp;
temp.Format("出生于%d年",m_year);
Info+=temp+",";
if(m_sex==0)
Info+="她是个女孩\n";
else
Info+="他是个男孩\n";
AfxMessageBox(Info);
}
当我给m_year赋值时,它显示的却不是我赋给的值
如:m_name="qwe",选的是男孩,m_yaer=1993时
显示的是:qwe出生于195564558年,他是个男孩.
这是怎么会事
void CTest001Dlg::Onqr()
{
// TODO: Add your control notification handler code here
UpdateData();
CString Info;
Info=m_name;
CString temp;
temp.Format("出生于%d年",m_year);
Info+=temp+",";
if(m_sex==0)
Info+="她是个女孩\n";
else
Info+="他是个男孩\n";
AfxMessageBox(Info);
}
当我给m_year赋值时,它显示的却不是我赋给的值
如:m_name="qwe",选的是男孩,m_yaer=1993时
显示的是:qwe出生于195564558年,他是个男孩.
这是怎么会事