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

Function main

Examples/Modules/Chapter 12/Ex12_11/Ex12_11.cpp:5–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import box;
4
5int main()
6{
7 const Box myBox {3.0, 4.0, 5.0};
8 std::cout << "myBox dimensions are " << myBox.getLength()
9 << " by " << myBox.getWidth()
10 << " by " << myBox.getHeight() << std::endl;
11
12 myBox.printVolume();
13 myBox.printVolume();
14 myBox.printVolume();
15}

Callers

nothing calls this directly

Calls 4

getLengthMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45
printVolumeMethod · 0.45

Tested by

no test coverage detected