mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-28 16:23:10 +03:00
Update queue.c
this will include the declaration and initialization of the head as well as the tail node, it will also have the definition of node.
This commit is contained in:
parent
e5dad3fa8d
commit
0557bd82d0
@ -1,7 +1,17 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// INCLUDES
|
// INCLUDES
|
||||||
#include "include.h";
|
#include "include.h";
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Node structure
|
||||||
|
struct node{
|
||||||
|
int data;
|
||||||
|
struct node* next;
|
||||||
|
struct node* pre;
|
||||||
|
};
|
||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
//initialising head and tail
|
||||||
|
struct node *head=NULL;
|
||||||
|
struct node *tail=NULL;
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// GLOBAL VARIABLES
|
// GLOBAL VARIABLES
|
||||||
int count;
|
int count;
|
||||||
|
Loading…
Reference in New Issue
Block a user