/****第一种定义类,不带取地址符
bool cbox::compare(cbox xbox) const
{
return volume() > xbox.volume();
}
/****第二种定义类,带取地址符
bool cbox::compare(const cbox& xbox) const
{
return volume() > xbox.volume();
}
区别是啥???
/****第一种定义类,不带取地址符
bool cbox::compare(cbox xbox) const
{
return volume() > xbox.volume();
}
/****第二种定义类,带取地址符
bool cbox::compare(const cbox& xbox) const
{
return volume() > xbox.volume();
}
区别是啥???