Programming Challenge: 11 - String Selection Sort Modification
Have the program prompt the user for the file name.
Display both the unsorted and sorted names, one name per line.
Note that the strings to be sorted might contain spaces!
Do not use a two-dimensional array of type char (as in the textbook example); that is a fairly
outdated approach. Well, C is an old language so we get a lot of that even in the newer
textbooks. Use an array of type string instead.
(We cannot use vectors)

Programming Challenge- 11 - String Selection Sort Modification Have th (1).pdf

  • 1.
    Programming Challenge: 11- String Selection Sort Modification Have the program prompt the user for the file name. Display both the unsorted and sorted names, one name per line. Note that the strings to be sorted might contain spaces! Do not use a two-dimensional array of type char (as in the textbook example); that is a fairly outdated approach. Well, C is an old language so we get a lot of that even in the newer textbooks. Use an array of type string instead. (We cannot use vectors)