I just have one question, when you have a class that is defined:
class box{
public:
int *value;
box()
{
value=new int;
*value=0;
};
box(box &c)
{*value=*c.value;};
};
If in the main you said class box b(a); it would work as expected. But I don't understand how that makes sense. How can you set the adress of the object to another object. It would make sense to set it to another object's adress. Or is it that the reference operator is being used differenly than as an adress getter?