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

Function main

Examples/NoModules/Chapter 08/Ex8_06.cpp:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5double yield(const double values[][4], size_t n);
6
7int main()
8{
9 double beans[3][4] { { 1.0, 2.0, 3.0, 4.0},
10 { 5.0, 6.0, 7.0, 8.0},
11 { 9.0, 10.0, 11.0, 12.0} };
12
13 std::cout << "Yield = " << yield(beans, std::size(beans))
14 << std::endl;
15}
16
17// Function to compute total yield
18double yield(const double array[][4], size_t size)

Callers

nothing calls this directly

Calls 1

yieldFunction · 0.70

Tested by

no test coverage detected