Hey, guys I think this is a very simple problem and that I just can't get it is due to some gap in my knowledge. Any way, what is wrong with this :
class A{
private: int value;
public : A(int v);
};
A::A(int v)
{value = v;}
//Does not work
class B {A ob(5);};
//Works
main(){A ob(5);}
By does not work, I mean compile.
Thanks up front.