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

Function show

Examples/Modules/Chapter 13/Ex13_03A/Ex13_03A.cpp:9–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7import box;
8
9void show(const Box& box)
10{
11 std::cout << std::format("Box({:.1f}, {:.1f}, {:.1f})",
12 box.getLength(), box.getWidth(), box.getHeight());
13}
14void show(const Box& box1, std::string_view relationship, const Box& box2)
15{
16 show(box1); std::cout << relationship; show(box2); std::cout << std::endl;

Callers 1

mainFunction · 0.70

Calls 3

getLengthMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected