![]() |
#2
rjsp2012-06-17 14:01
|
#include <iostream.h>
#include <conio.h>
class A
{
public :
A(){a=0;}
A(int x)
{
a=x;
}
void show(int x)
{
A(x);
cout<<a<<endl;
}
private:
int a;
};
void main()
{
A a;
a.show(2);
}
编译出错:error C2082: redefinition of formal parameter 'x'