Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ main
Function
main
Examples/NoModules/Chapter 12/Ex12_06/Ex12_06.cpp:10–14 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
8
#include
"Box.h"
// For use of the Box class
9
10
int main()
11
{
12
Box myBox{ 6.0, 6.0, 18.5 }; // Create a box
13
std::cout <<
"Volume of the first Box object is "
<< myBox.volume() << std::endl;
14
}
Callers
nothing calls this directly
Calls
1
volume
Method · 0.45
Tested by
no test coverage detected