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

Function main

Exercises/Modules/Chapter 20/Soln20_06/Soln20_06.cpp:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

fillVector_1toNFunction · 0.70
printVectorFunction · 0.70
removeEvenNumbersFunction · 0.70

Tested by

no test coverage detected