Create the necessary operators that allow Box objects to be used in if statements such as these:
if (my_box) ...
if (!my_other_box) ...
A Box is equivalent to true if it has a nonzero volume; if its volume is zero, a Box should evaluate to false. Create a small test program that shows your operators work as requested.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here