The data is grouped into tracks where a new track starts after each line break as shown above (in the actual data there are thousands of tracks). I am trying to write a program that will allow the user to enter a track number. The program will then output the entire track. For example
I need to write the program using classes. I am trying to write a class: class tracks that will contain all of the tracks. The user should be able to call on the class to output the desired track. I am not quite sure how to approach this problem. Any suggestions would be greatly appreciated.
You want to create a collection. See http://www.codeproject.com/KB/trace/collectionclass.aspx for an example, albeit not an excellent one. Hopefully, though, it will satisfy the basic needs and will enlighten you towards a better one.