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

Function main

Examples/Modules/Chapter 12/Ex12_01/Ex12_01.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27};
28
29int main()
30{
31 Box firstBox {80.0, 50.0, 40.0}; // Create a box
32 double firstBoxVolume {firstBox.volume()}; // Calculate the box volume
33 std::cout << "Volume of Box object is " << firstBoxVolume << std::endl;
34
35 // Box secondBox; // Causes a compiler error message
36}

Callers

nothing calls this directly

Calls 1

volumeMethod · 0.45

Tested by

no test coverage detected