Jump to content


Check out our Community Blogs

shahmalik

Member Since 18 Mar 2012
Offline Last Active Mar 18 2012 06:07 AM
-----

Topics I've Started

data structure assingment using linklist plzzzzz help meeee

18 March 2012 - 05:39 AM

Write a program to maintain result for data structures course. Result is to be maintained as a linked list. Here are the functions that your program should offer (They should be the options in your MENU):
- Add : Accept reg_no and marks from user. Create an entry with the corresponding values and insert it in the linked list. Make sure entry is inserted at the correct position as the list is sorted.

- Find : Take reg_no from user, If record is found display marks of student. If record is not found display a message "not found".

- Delete : Delete the entry of the result corresponding to the reg_no. If no such reg_no exists, print a message indicating “record not found”.

- Display: Display the contents of linked list.

- Exit

You will need to define a class for an entry in the result containing a pointer to the next entry.
class entry {
int reg_no;
int marks;
entry * next ;
}

---------- Post added at 06:34 PM ---------- Previous post was at 06:33 PM ----------

plzzzz plzzzz help me out i dnt know how i implement entry in linklist

---------- Post added at 06:36 PM ---------- Previous post was at 06:34 PM ----------

plzzzz plzzzz help me out i dnt know how i implement entry in linklist

---------- Post added at 06:39 PM ---------- Previous post was at 06:36 PM ----------

i submit it tomarrow plzzz help me

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download