Enqueue & Dequeue - Online Code

Description

this is a Code which is used to Create a Queue,Enqueue an element in a Queue,Dequeue an element from a Queue,to display the member elements of a Queue & to display the Size of the Queue.

Source Code

#include <iostream.h>


class element
{
	public:
		int value;
		element* next;
};									//class element

class Queue
{
	public:
		int size;
		element* head;
		element* tail;
	Queue()
	{
		size=0;
		head=NULL;
		tail=NUL
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.




Comments

elavarasan elavarasan on 2012-06-27 09:43:45 wrote,

i like u