Sorting a Singly Linked List on Insertion
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Sorting a Singly Linked List on Insertion

  1. #1
    Join Date
    Mar 2011
    Posts
    1

    Sorting a Singly Linked List on Insertion

    I added the zip file with the .h and .cpp for the program to run. It work but the sort only works until Age: 21. It uses a .dat file to collect the data and save it into a class. The sorting is done when the node is added.

    If anyone can help me out it would be appreciated. The assignment is due tonight and i just need it to sort fully
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2009
    Posts
    439

    Re: Sorting a Singly Linked List on Insertion

    I'd recommend posting your code within code tags. Some people do not like to download files from random people...myself included.

  3. #3
    Join Date
    Apr 1999
    Posts
    27,423

    Re: Sorting a Singly Linked List on Insertion

    Quote Originally Posted by mattfs View Post
    I added the zip file with the .h and .cpp for the program to run. It work but the sort only works until Age: 21. It uses a .dat file to collect the data and save it into a class. The sorting is done when the node is added.

    If anyone can help me out it would be appreciated. The assignment is due tonight and i just need it to sort fully
    Use your compiler's debugger instead of waiting for someone here to look at your code.

    Regards,

    Paul McKenzie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center