DOUBLE LINKED LISTs |
Functionality Implemented in this Program:
|
C Language Code: |
DLIST.H |
// DSTC --- DLIST.H -- DOUBLE LINK LIST ... #include <stdio.h>
typedef struct { Dlinklist * GetDlinklist() Node * GetNode() int empty(Dlinklist *l) //Obtaining address of last node t=l->start; //Count number of nodes t=l->start; // Inserting a new node in beginning // Deleting a node from beginning // Inserting a new node at end // Deleting a node from end t=l->start; //if linklist contains more than one node t->prev->next=NULL; // Inserting a new node at specific positon int InsPos(Dlinklist *l, int i, int pos) if(pos>CountNodes(l)) //if node is to be inserted at first position n=GetNode(); //obtain a node just before the inserted position {
// Deleting a node at specific position
//if node is to be deleted from first position //obtain a node to be deleted t->prev->next=t->next; void Displist(Dlinklist *l) |
DLIST.CPP |
// DSTC -- DLIST.CPP ---- DOUBLE LINK LIST .... #include "dlist.h" l=GetDlinklist(); while(1) int menu(void) int GetInfo(void) int GetPos(void) |
We are trying to contribute to the net what ever Technical knowledge. I Believe that knowledge increases by spreading and sharing with others.
Showing posts with label DOUBLE LINKED LISTs - DSTC using C Language (Source Code Implemented). Show all posts
Showing posts with label DOUBLE LINKED LISTs - DSTC using C Language (Source Code Implemented). Show all posts
Tuesday, January 30, 2024
DOUBLE LINKED LISTs - DSTC using C Language (Source Code Implemented)
Subscribe to:
Posts (Atom)