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

Function printSums

Exercises/NoModules/Chapter 15/Soln15_06/Soln15_06.cpp:49–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 2

calculateSumAreasFunction · 0.70
calculateSumPerimetersFunction · 0.70

Tested by

no test coverage detected