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

Function GetIndices

05.01-stdFmtStockIndex0/main.cpp:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38};
39
40std::vector<StockIndex> GetIndices()
41{
42 StockIndex dax{"DAX"};
43 dax.setPoints(13'052.95);
44 dax.setPoints(13'108.50);
45
46 StockIndex dow{"Dow"};
47 dow.setPoints(29'080.17);
48 dow.setPoints(29'290.00);
49
50 StockIndex sp{"S&P 500"};
51 sp.setPoints(3'537.01);
52 sp.setPoints(3'561.50);
53
54 return {dax, dow, sp};
55}
56
57void WithPrintf()
58{

Callers 4

WithPrintfFunction · 0.70
WithIostreamAdvancedFunction · 0.70
WithIostreamOperatorFunction · 0.70
WithStdFormatFunction · 0.70

Calls 1

setPointsMethod · 0.45

Tested by

no test coverage detected