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

Function main

Exercises/Modules/Chapter 20/Soln20_04/Soln20_04.cpp:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29int main()
30{
31 const size_t num_numbers{ 20 };
32
33 auto numbers{ fillVector_1toN(num_numbers) };
34
35 printVector("The original set of numbers", numbers);
36
37 removeEvenNumbers(numbers);
38
39 printVector("The numbers that were kept", numbers);
40}
41
42std::vector<int> fillVector_1toN(size_t N)
43{

Callers

nothing calls this directly

Calls 3

fillVector_1toNFunction · 0.70
printVectorFunction · 0.70
removeEvenNumbersFunction · 0.70

Tested by

no test coverage detected