Write a function, sortStrings, to arrange an array of n strings in ascending order. Assume the prototype
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a function, sortStrings, to arrange an array of n strings in ascending order. Assume the prototype is: void sortStrings(string a[], int n);
Please Note:
- No I/O (cin or cout) should be in these functions. As a general design principle, I/O should be restricted to a few functions which are specifically used for this purpose. There is no need for I/O in these functions.
- There is no need for temporary arrays. The space in the arrays passed as parameters is sufficient.
Related Book For
Algorithm Design And Applications
ISBN: 9781118335918
1st Edition
Authors: Michael T. Goodrich, Roberto Tamassia
Posted Date: