This is an example of a singly linked list allowing you to enter a number of names and associated ages. The twist is that the names are inserted into the list in ascending order. When the list is displayed, it is already sorted by name.
This is not an exercise in safe data input. While precautions have been taken, any fool can stress the language easily.