Sat Apr 07, 2007 12:47 pm
#include
using namespace std;
typedef int queueElementType ;
class Queue {
public:
Queue();
void enqueue(queueElementType elem);
queueElementType dequeue();
queueElementType front();
bool isEmpty();
int count();
private:
int Time_Affer_request;
struct Node;
typedef Node * nodePtr;
struct Node {
queueElementType data;
queueElementType time;
nodePtr next;
};
int counter;
nodePtr first;
nodePtr last;
};
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.