函数定义还可以省略参数名,如下编译,连接,调用都没有问题
///void GetP(char * p = NULL)
///void GetP(char * )
///void GetP(int, int)
void GetP(int)
{
AfxMessageBox(_T("123"));
}
调用
GetP(0);
函数定义还可以省略参数名,如下编译,连接,调用都没有问题
最新推荐文章于 2022-10-12 12:50:31 发布
函数定义还可以省略参数名,如下编译,连接,调用都没有问题
///void GetP(char * p = NULL)
///void GetP(char * )
///void GetP(int, int)
void GetP(int)
{
AfxMessageBox(_T("123"));
}
调用
GetP(0);