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

Function main

Examples/Modules/Chapter 20/Ex20_14A/Ex20_14A.cpp:14–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14int main()
15{
16 const size_t num_numbers{ 20 };
17
18 auto numbers{ fillVector_1toN(num_numbers) };
19
20 printVector("The original set of numbers", numbers);
21
22 removeEvenNumbers(numbers);
23
24 printVector("The numbers that were kept", numbers);
25}
26
27std::vector<int> fillVector_1toN(size_t N)
28{

Callers

nothing calls this directly

Calls 3

fillVector_1toNFunction · 0.70
printVectorFunction · 0.70
removeEvenNumbersFunction · 0.70

Tested by

no test coverage detected