Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ computeValues
Function
computeValues
Examples/Modules/Chapter 16/Ex16_07/Ex16_07.cpp:24–30 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
22
}
23
24
double* computeValues(size_t howMany)
25
{
26
double* values{ new double[howMany] };
27
for (size_t i{}; i < howMany; ++i)
28
values[i] = computeValue(i);
29
return values;
30
}
31
32
double computeValue(size_t x)
33
{
Callers
1
main
Function · 0.70
Calls
1
computeValue
Function · 0.70
Tested by
no test coverage detected