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