Hey guys, I'm writting a program that reads a list of names from a file called name.txt and instert these names directly into a linked list in alphabetical order of last names. For example, if the text file has these names: Henry Johns III, Albert Einstein, Henry Johns II, Mary D Goly, Bob Apple Jr. , Bob Apple Sr. then the linked list will be in this order: Bob Apple Jr. , Bob Apple Sr., Alber Einstein, Mary D Goly, Henry Johns II, Henry Johns III. Someone suggested me to use CompareTo to compare the last names, but I'm still very confused. PLEASE HELP ME, I'M VERY DESPERATE!
Thanks!
MaydayLove
0
Newbie Poster
Recommended Answers
Jump to Postnope. We can't do it for you (or rather we could, but we won't).
You have a complete and detailed problem description, implementing that should be trivial if you've done your previous homework and paid attention in class.
All 4 Replies
MaydayLove
0
Newbie Poster
jwenting
1,889
duckman
Team Colleague
raj_developer
-3
Light Poster
jwenting
commented:
don't feed the homework kiddo, fool
-3
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.