#include <iostream>
#include <exception>
using namespace std;
void f(int x)
{
cout<<"void f(int x)"<<endl;
}
void f(int *p)
{
cout<<"void f(int *p)"<<endl;
}
int main()
{
//int *p = NULL;
//f(p);
f(NULL);
return 0;
}
[vs2005]输出结果:void f(int x)
#include <iostream>
#include <exception>
using namespace std;
void f(int x)
{
cout<<"void f(int x)"<<endl;
}
void f(int *p)
{
cout<<"void f(int *p)"<<endl;
}
int main()
{
//int *p = NULL;
//f(p);
f(NULL);
return 0;
}
[vs2005]输出结果:void f(int x)