Calculations
Let's write the summing function for our CSV reader app and compile the code.
We'll cover the following...
We'll cover the following...
Once all the records are available we can compute their sum:
The code runs on the vector of all records and then calculates the price of each element if they fit between startDate and endDate. Then they are all summed in std::accumulate.