MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / WithPrintf

Function WithPrintf

05.01-stdFmtStockIndex0/main.cpp:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void WithPrintf()
58{
59 for(const auto& index : GetIndices()) {
60 printf("%-10s %8.2lf %6.2lf %4.2lf%%\n",
61 index.name().c_str(),
62 index.points(),
63 index.pointsDiff(),
64 index.pointsPercent());
65 }
66}
67
68void WithIostreamAdvanced()
69{

Callers 1

mainFunction · 0.85

Calls 5

nameMethod · 0.80
GetIndicesFunction · 0.70
pointsMethod · 0.45
pointsDiffMethod · 0.45
pointsPercentMethod · 0.45

Tested by

no test coverage detected