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

Function main

Examples/NoModules/Chapter 20/Ex20_14/Ex20_14.cpp:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

fillVector_1toNFunction · 0.70
printVectorFunction · 0.70
removeEvenNumbersFunction · 0.70

Tested by

no test coverage detected