The program stores information about persons:
The program reads input line by line, each input line is a command. The following commands can be used:
The add command can be used to add persons.
The del command deletes one or multiple records matching the specified family name, surname or age.
The read command reads an input file typically containing add commands.
The find command searches for the record for a given family name, surname or age.
The print command prints all records beginning at the current record (the first record in the container or the element found in the last find command) until the end of the container.
The tree command command prints the tree structures of a container.
The quit command can be used to exit the application.
Input to the program might look like
add Erwin Unsinn 30 add David Zeppelin 40 add Johann Unfug 50 add Alter Sack 99 add Bla Blubb 33 print find a 40 find a 45 del s Johann print tree quit