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

Function main

Examples/NoModules/Chapter 20/Ex20_10/Ex20_10.cpp:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

fillVector_1toNFunction · 0.70
printVectorFunction · 0.70
removeEvenNumbersFunction · 0.70

Tested by

no test coverage detected