| 6 | import box; |
| 7 | |
| 8 | void testBox(const Box& box) |
| 9 | { |
| 10 | std::cout << "The box's volume is " << box.volume() << ".\n"; |
| 11 | if (box) |
| 12 | std::cout << "This volume is non-zero."; |
| 13 | if (!box) |
| 14 | std::cout << "This volume is zero."; |
| 15 | std::cout << std::endl; |
| 16 | } |
| 17 | |
| 18 | int main() |
| 19 | { |