(a) Modify your solution to Exercise 7.14 so that the comparison routine is an explicit generic parameter,...
Question:
(a) Modify your solution to Exercise 7.14 so that the comparison routine is an explicit generic parameter, reminiscent of the chooser.
(b) Give an alternative solution in which the comparison routine is an extra parameter to sort.
Data From Exercise 7.14:
Flesh out the C++ sorting routine of Example 7.53. Demonstrate that this routine does “the wrong thing” when asked to sort an array of char* strings.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: