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