A
ankit_jain_gzb
Hi
Iam not able to understand why the following code gives compile
problem.
Thanks
Ankit Jain
class B;
class A{
public:
friend class B;
B* x;
A()
{
x = new B(3)
}
};
class B{
public:
B(int i)
{
}
};
int main()
{
return 0;
}
error coming in vc++ (6.0) is --> error C2514: 'B' : class has no
constructors
Iam not able to understand why the following code gives compile
problem.
Thanks
Ankit Jain
class B;
class A{
public:
friend class B;
B* x;
A()
{
x = new B(3)
}
};
class B{
public:
B(int i)
{
}
};
int main()
{
return 0;
}
error coming in vc++ (6.0) is --> error C2514: 'B' : class has no
constructors