Course Code : CS-62 Course Title : 'C' Programming & Data ...

2 downloads 269 Views 43KB Size Report
If you have any query just email us at www.ignoufriend.blogspot.com Email : [email protected]. Course Code : CS-62.
Email : [email protected] IGNOU Friend

Course Code : CS-62 Course Title : ‘C’ Programming & Data Structure Assignment Number : BCA (2)-62/Assignment/ 2011 Maximum Marks : 25 Last Date of Submission : 30th April, 2011/30th October, 2011

If you have any query just email us at www.ignoufriend.blogspot.com Email : [email protected]

Email : [email protected] IGNOU Friend

There are three questions in this assignment. Answer all the questions. You may use illustrations and diagrams to enhance your explanations. Question 1: Write an algorithm for the implementation of a circular doubly linked list (10 Marks) Operations 1)insertion 2)forward traversal 3)reverse traversal 4)search

#include cll*hd; struct cll { private: int data; cll *next; public: cll* insert_one(int d,cll* c) { cll*NEW; NEW=new cll; NEW->data=d; NEW->next=NULL; if(c==NULL) { c=NEW; c->next=c; } else { cll*c1=c; while(c1->next!=c) c1=c1->next; c1->next=NEW; NEW->next=c; } return c; } cll* delete_one(int,cll*); void ftraverse(cll* c) { if(c==NULL) { cout

Suggest Documents