Rewrite the bookstore problem from § 1.6 (p. 24) using a vector to hold the transactions and various algorithms to do the processing. Use sort with your compareIsbn function from § 10.3.1 (p. 387) to arrange the transactions in order, and then use find and accumulate to do the sum.
§ 1.6 (p. 24)
Exercise 1.23
Write a program that reads several transactions and counts how many transactions occur for each ISBN.
Exercise 1.24
Test the previous program by giving multiple transactions representing multiple ISBNs. The records for each ISBN should be grouped together.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.