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

Function main

Examples/Modules/Chapter 20/Ex20_14B/Ex20_14B.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

fillVector_1toNFunction · 0.70
printVectorFunction · 0.70
removeEvenNumbersFunction · 0.70

Tested by

no test coverage detected