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

Function main

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

Source from the content-addressed store, hash-verified

3import box; // For use of the Box class
4
5int main()
6{
7 Box myBox{ 6.0, 6.0, 18.5 }; // Create a box
8 std::cout << "Volume of the first Box object is " << myBox.volume() << std::endl;
9}

Callers

nothing calls this directly

Calls 1

volumeMethod · 0.45

Tested by

no test coverage detected