C++ help!!!

YGG

Junior member
  • Oct 16, 2006
    65
    1
    8
    cud some one put up the code for this!
    thankx.


    You need to create a singly linked list where each node contains following information:
    1. ID as int
    2. Name as string or char[ ]

    When your program is run, the following screen will be output and waiting for the user input.
    1. List all the values in the list
    2. Add a new value at the end of the list
    0. Exit the program

    The user can display all the values or add a new value at the end of the list by choosing corresponding option. The ID and Name will be displayed if the user chooses “1”.When a user adds a new value, he needs to input the “Name”. ID will be assigned,automatically by the last value’s ID +1. Please be careful about the next pointer assignment. When a new item is added, the old last item’s next value will point to the new item. The next pointer of new value will be assigned as NULL.
     

    Jack_Sparrow

    Well-known member
  • Jun 16, 2008
    42,522
    1
    16,927
    113
    Black Pearl
    machan meka mama giya awurdde karapu ekak
    meka poddak wenas karala ubata ona eka karaganna puluwan
    poddak aran balahan
    visual studio2005 walin kaleee

    Code:
    http://www.sendspace.com/file/gfbhn7

    :D:D