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

Function showVolume

Examples/NoModules/Chapter 15/Ex15_05/Ex15_05.cpp:8–11  ·  view source on GitHub ↗

Global function to display the volume of a box

Source from the content-addressed store, hash-verified

6
7// Global function to display the volume of a box
8void showVolume(const Box& box)
9{
10 std::cout << "Box usable volume is " << box.volume() << std::endl;
11}
12
13int main()
14{

Callers 1

mainFunction · 0.70

Calls 1

volumeMethod · 0.45

Tested by

no test coverage detected