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

Function show

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

Source from the content-addressed store, hash-verified

6#include "Box.h"
7
8void show(const Box& box)
9{
10 std::cout << std::format("Box({:.1f}, {:.1f}, {:.1f})",
11 box.getLength(), box.getWidth(), box.getHeight());
12}
13void show(const Box& box1, std::string_view relationship, const Box& box2)
14{
15 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