MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / testBox

Function testBox

Exercises/Modules/Chapter 13/Soln13_06/Soln13_06.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13import box;
14
15void testBox(const Box& box)
16{
17 std::cout << "The box's volume is " << box.volume() << ".\n";
18 if (box)
19 std::cout << "This volume is non-zero.";
20 if (!box)
21 std::cout << "This volume is zero.";
22 std::cout << std::endl;
23}
24
25int main()
26{

Callers 1

mainFunction · 0.70

Calls 1

volumeMethod · 0.45

Tested by

no test coverage detected