|
To access the contents, click the chapter and section titles.
Learn Pascal in a Three Days (2nd Ed.)
Sample run: In the following run, option "1" was chosen in order to add a new employee (SSN: 222-22-2222). The program, however, refused to add it because the "SearchList" procedure found this "SSN" in the list. ------------- Main Menu -------------- 1. Add records to the list. 2. Display the whole list. 3. Display an employee record. 4. Add records from file. 5. Save the list to a file. 6. Delete a record. 7. Update a record. 8. Exit. -------------------------------------- Make a choice and press a number: 4 The employee list is ready in memory. Hit any key to continue... ------------- Main Menu -------------- 1. Add records to the list. 2. Display the whole list. 3. Display an employee record. 4. Add records from file. 5. Save the list to a file. 6. Delete a record. 7. Update a record. 8. Exit. -------------------------------------- Make a choice and press a number: 1 Please enter the SSN of the employee: 222-22-2222 The SSN: 222-22-2222 is already in the list. Hit any key to continue... SummaryIn this chapter you learned the following features of pointers:
You also learned how to use linked lists as advanced data structures that expand or shrink dynamically during the execution of the program. The following are the most important features of linked lists:
The Next StepBy the end of this chapter you have enough tools to practice programming in Pascal and create good application programs. However, you may want to read about some topics which are not covered in this book:
These topics are not included in standard Pascal, so you have to refer to books on your specific compiler.
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |