| 5 | double average10(const std::array<double,10>& array); // Function prototype |
| 6 | |
| 7 | int main() |
| 8 | { |
| 9 | std::array<double,10> values{ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 }; |
| 10 | // std::array<double,3> values{ 1.0, 2.0, 3.0 }; // Only three values!!! |
| 11 | std::cout << "Average = " << average10(values) << std::endl; |
| 12 | } |
| 13 | |
| 14 | // Function to compute an average |
| 15 | double average10(const std::array<double,10>& array) |
nothing calls this directly
no test coverage detected