Question: C++ ONLY. Please use comments to explain reasoning. I understand how to make the struct for a person and the link, but how do you
C++ ONLY. Please use comments to explain reasoning. I understand how to make the struct for a person and the link, but how do you create the class for the linked list itself?
The file /home/218/database.txt contains a large number of lines of data. Each line describes one person: Social security number, birth date (YYYYMMDD), first name, last name, and zip code. Here are six unexciting lines from the middle of the file: 525373469 19630128 Nancy Frankenstein 88539 525388530 19630228 Darcy Epstein 56906 525397776 19710519 Frances Cadwallader 88625 525535897 19361217 Edwin Frogmorton 07004 525753047 19380123 Alexander Jones 24267 525780779 19420616 Tom Wilson 39264 You are to write a program that reads this file and stores its information in a linked list. Do this in the style we used in class. It certainly does not need to be exactly the same, just in the same style. Do not be led astray by any nonsense you might find on the web. Make a struct (or class) to represent a person. Just a person, nothing else. Make a struct (or class) to represent a link in the list. Make a class to represent the whole linked list, and give it useful methods.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
