Ticket Window - Online Code

Description

Ticket Window is a simple program to show the implementaion of QUEUE. Program takes as input the number of Tickets required and ENQUEUE them. Only two Tickets are allowed at one time.If more than two Tickets are demanded, two are given and the remaining is Enqueued again for its turn.

Source Code




#include <iostream.h>

#include <conio.h>

#include <process.h>



class ticketqueue{

private:

   //Data Members

		 int q[5];

		 int front, rear, noe;  //noe..to store number of elements



... (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

No comment yet. Be the first to post a comment.