代码搜索:queue

找到约 10,000 项符合「queue」的源代码

代码结果 10,000
www.eeworm.com/read/403154/11521338

h queue.h

#ifndef Queue_H #define Queue_H #define QUEUE_SIZE 100 template class Queue { public: Queue(); void EnQueue(T x); T DeQueue(); bool Empty() const; private: int front, rear
www.eeworm.com/read/403154/11521344

cpp queue.cpp

#include "Queue.h" template Queue::Queue() { front = 0; rear = 0; } template void Queue::EnQueue(T x) { if ( (rear + 1) % QUEUE_SIZE == front ) throw "上溢"
www.eeworm.com/read/403013/11524159

h queue.h

/* * This file contains code from "C++ Primer, Fourth Edition", by Stanley B. * Lippman, Jose Lajoie, and Barbara E. Moo, and is covered under the * copyright and warranty notices given in that
www.eeworm.com/read/403013/11524193

h queue.h

/* * This file contains code from "C++ Primer, Fourth Edition", by Stanley B. * Lippman, Jose Lajoie, and Barbara E. Moo, and is covered under the * copyright and warranty notices given in that
www.eeworm.com/read/403011/11524310

h queue.h

// queue.h -- interface for a queue #ifndef QUEUE_H_ #define QUEUE_H_ // This queue will contain Customer items class Customer { private: long arrive; // arrival time for customer
www.eeworm.com/read/403011/11524315

cpp queue.cpp

// queue.cpp -- Queue and Customer methods #include "queue.h" #include // (or stdlib.h) for rand() // Queue methods Queue::Queue(int qs) : qsize(qs) { front = rear = NULL
www.eeworm.com/read/403009/11524615

h queue.h

// queue.h -- interface for a queue #ifndef QUEUE_H_ #define QUEUE_H_ // This queue will contain Customer items class Customer { private: long arrive; // arrival time for customer
www.eeworm.com/read/403009/11524620

cpp queue.cpp

// queue.cpp -- Queue and Customer methods #include "queue.h" #include // (or stdlib.h) for rand() // Queue methods Queue::Queue(int qs) : qsize(qs) { front = rear = NULL
www.eeworm.com/read/402785/11527318

h queue.h

/* queue.h - header for queue library * * QUEUE - Queue Library * * Copyright (C) 2000 Richard Heathfield * Eton Computer Systems Ltd * Macmil
www.eeworm.com/read/402785/11527321

c queue.c

/* queue.c - source code for queue library * * QUEUE - Queue Library * * Copyright (C) 2000 Richard Heathfield * Eton Computer Systems Ltd * M