我导出了一个函数 extern void SuperCheck(int No ,CString str0);//检测文本值
函数的定义如下 :void SuperCheck(int No,CString str0="")//定义函数
CString check;
check.Format("%d",No);
AfxMessageBox(check+str0);
}然后我在外面调用的时候,我这样写报错void CMy_C001Dlg::OnButton1() 
{
SuperCheck(2345) ;
// TODO: Add your control notification handler code here
}
提示: error C2660: 'SuperCheck' : function does not take 1 parameters
如果我这样写就Ok
void CMy_C001Dlg::OnButton1() 
{
SuperCheck(2345,"文本") ;
// TODO: Add your control notification handler code here
}
请问我如何把第二个参数缺省掉,想不输入的时候也正确。缺省参数