- #1
torquerotates
- 207
- 0
Homework Statement
I'm given the member function:
bool Product::is_better_than(Product b) const
{
if(price==0) return true;
if (b.price price==0) return false;
return score/price>b.score/b.price;
}
I'm really confused about the last line "return score/price>b.score/b.price;". Does it mean, return true if ">" holds and return false if "<" doesn't hold?