Exercise 8

Using the file produced in Exercise5, read it and store the names in an array, sort the array into ascending order and output the sorted list.

Code the following Structured Design Chart into Pascal:



As mentioned before, when the file is being transferred from disc to the computer, the end of the text file is marked with a special 'end of file' marker. We therefore just have to keep transferring lines from the file until the 'eof' marker is encountered.



 
Send mail to ljschwerin@hotmail.com with questions or comments about this web site.

Copyright © 1999-2002 Leon Schwerin
Last modified: 26 March 2000
1