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

Function showVolume

Examples/Modules/Chapter 15/Ex15_05/Ex15_05.cpp:6–9  ·  view source on GitHub ↗

Global function to display the volume of a box

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 1

volumeMethod · 0.45

Tested by

no test coverage detected