Thanks, but I think that my array size is fine - it's just that I don't know how to sort the ages out and put the comma in between the name and age of each line.
Type: Posts; User: ComputerSaysNo
Thanks, but I think that my array size is fine - it's just that I don't know how to sort the ages out and put the comma in between the name and age of each line.
The data in the notepad is:
Jones 14
Abrams 15
Smith 19
Jones 9
Alexander 22
Smith 20
Smith 17
Tippurt 42
Jones 2
I have to use selection sort to sort out a list of names and respective ages from a notepad file.
I have been able to implement the names and ages into array, and sort the names, but not the ages if...