mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-24 22:39:52 +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
|
||||
#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
|
||||
int count;
|
||||
|
Loading…
Reference in New Issue
Block a user