If Any Required Program Please Ask In Comment I Will Help You(any Program in JAVA or C++) . . THANKS FOR VISITING MY BLOG!

If U LIKE MY PROFILE RAISE YOUR HAND IF U NOT RAISE UR STANDARD. Powered by Blogger.

If Any Required Program Please Ask In Comment I Will Help You(any Program in JAVA or C++) . . THANKS FOR VISITING MY BLOG!

Friday, November 30, 2018

PROGRAM TO IMPLEMENT THE TREE TRAVERSELS.


#include <iostream> #include <conio.h> #include <stdlib.h> using namespace std; class B_Tree; class Node { private:     int Info;     Node *Left, *Right;     friend class B_Tree; }; class B_Tree { private:     Node *Root; public:     B_Tree()     {         Root = NULL;     }  ...

PROGRAM TO IMPLEMENT THE DOUBLY LINKLIST.


#include <iostream> #include <stdlib.h> #include <conio.h> using namespace std; class Double_LL; class Node { private:     int Info;     Node *Left, *Right;     friend class Double_LL; }; class Double_LL { private:     Node *First; public:     Double_LL()     {         First = NULL;    ...

PROGRAM TO IMPLEMENT THE JOSEPHUS PROBLEM.


#include <iostream> #include <stdlib.h> #include <string.h> #include <conio.h> using namespace std; class C_List; class Node {     friend class C_List;     friend class Josephus; private:     char Name[100];     Node *Link; }; class Josephus; class C_List {     friend class Josephus; private:     Node *Last; public:  ...

PROGRAM TO IMPLEMENT STACK USING CIRCULAR LIST.


#include <iostream> #include <conio.h> #include <stdlib.h> using namespace std; class Stack; class Node { private: int Info; Node *Link; friend class Stack; }; class Stack { private: Node *Last; public: Stack() { Last = NULL; } void Push(int Value) { Node *Temp = new Node; Temp->Info = Value; if (IsEmpty()) Last = Temp; else Temp->Link =...

PROGRAM TO IMPLEMENT QUEUE USING CIRCULAR LIST.


#include <iostream> #include <conio.h> #include <stdlib.h> using namespace std; class Queue; class Node { private: int Info; Node *Link; friend class Queue; }; class Queue { private: Node *Last; public: Queue() { Last = NULL; } void EnQueue(int Value) { Node *Temp = new Node; Temp->Info = Value; if (IsEmpty()) Last = Temp; else Temp->Link...

PROGRAM TO IMPLEMENT CIRCULAR LISTS(function del after).


#include <iostream> #include <conio.h> #include <stdlib.h> using namespace std; class C_List; class Node { private: int Info; Node *Link; friend class C_List; }; class C_List { private: Node *Last; public: C_List() { Last = NULL; } void Insert(int Value) { Node *Temp = new Node; Temp->Info = Value; if (IsEmpty()) Last = Temp; else Temp->Link...

PROGRAM TO IMPLEMENT CIRCULAR LIST.


#include <iostream> #include <conio.h> #include <stdlib.h> using namespace std; class C_List; class Node { private: int Info; Node *Link; friend class C_List; }; class C_List { private: Node *Last; public: C_List() { Last = NULL; } void Insert(int Value) { Node *Temp = new Node; Temp->Info = Value; if (IsEmpty()) Last = Temp; else Temp->Link...

Monday, November 12, 2018

PROGRAM TO CONCATENATE TWO LISTS TO 3rd


#include <iostream> #include <conio.h> #include <stdlib.h> using namespace std; class Chain; class Node { private:     int Info;     Node *Link;     friend class Chain; }; class Chain { private:     Node *First; public:     Chain()     {         First = NULL;     }     void...

PROGRAM INSERT A NODE AT END OF LINK LIST.


#include <iostream> #include <conio.h> #include <stdlib.h> using namespace std; class Chain; class Node { private:     int Info;     Node *Link;     friend class Chain; }; class Chain { private:     Node *First; public:     Chain()     {         First = NULL;     }     void...

PROGRAM TO MERGE TWO LISTS.


#include <iostream> #include <conio.h> #include <stdlib.h> using namespace std; class Chain; class Node { private:     int Info;     Node *Link;     friend class Chain; }; class Chain { private:     Node *First; public:     Chain()     {         First = NULL;     }     void...