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

Function show

Examples/NoModules/Chapter 13/Ex13_02/Ex13_02.cpp:8–12  ·  view source on GitHub ↗

Display box dimensions

Source from the content-addressed store, hash-verified

6
7// Display box dimensions
8void show(const Box& box)
9{
10 std::cout << std::format("Box {:g}x{:g}x{:g}",
11 box.getLength(), box.getWidth(), box.getHeight()) << std::endl;
12}
13
14int main()
15{

Callers 1

mainFunction · 0.70

Calls 3

getLengthMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected