Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
8
void 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
14
int main()
15
{
Callers
1
main
Function · 0.70
Calls
3
getLength
Method · 0.45
getWidth
Method · 0.45
getHeight
Method · 0.45
Tested by
no test coverage detected