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

Function printSums

Exercises/Modules/Chapter 15/Soln15_06/Soln15_06.cpp:50–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void printSums(const std::vector<Shape*>& shapes)
51{
52 std::cout << "Sum of areas: " << calculateSumAreas(shapes) << std::endl;
53 std::cout << "Sum of perimeters: " << calculateSumPerimeters(shapes) << std::endl;
54}

Callers 1

mainFunction · 0.70

Calls 2

calculateSumAreasFunction · 0.70
calculateSumPerimetersFunction · 0.70

Tested by

no test coverage detected