0001 #include <stdio.h> 0002 #include <stdlib.h> 0003 #include <time.h> 0004 #include <limits.h> 0005 0006 #include "queue/queue.h" //引入队列 0007 #include "Customer.h" //顾客类 0008 0009 int bestWindow ( Queue<Customer> window[], int nWin ); 0010 void printCustomer ( Customer c ); 0011 void displayProgress ( Queue<Customer> window[], int nWin, int now ); 0012 void simulate ( int, int ); 0013 0014 extern int delay; //控制进度显示的延迟