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

Function main

Examples/NoModules/Chapter 14/Ex14_06/Ex14_06.cpp:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "Carton.h" // For the Carton class
4
5int main()
6{
7 Carton carton;
8 Carton candyCarton{50.0, 30.0, 20.0, "SBB"}; // Solid bleached board
9
10 std::cout << "carton volume is " << carton.volume() << std::endl;
11 std::cout << "candyCarton volume is " << candyCarton.volume() << std::endl;
12}

Callers

nothing calls this directly

Calls 1

volumeMethod · 0.45

Tested by

no test coverage detected