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_06A/Ex12_06A.cpp:9–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
7
#include
"Box.h"
// For use of the Box class
8
9
int main()
10
{
11
Box myBox{ 6.0, 6.0, 18.5 }; // Create a box
12
std::cout <<
"Volume of the first Box object is "
<< myBox.volume() << std::endl;
13
}
Callers
nothing calls this directly
Calls
1
volume
Method · 0.45
Tested by
no test coverage detected