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

Function GetIndices

05.04-stdFmtStockIndexIostream0/main.cpp:38–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 1

setPointsMethod · 0.45

Tested by

no test coverage detected