comedate:

1. 编码习惯中,

typedef int status;

typedef string Qelemtype;

#define OK 1

#define ERROR 0

#define OVEFLOW -2

typdef 放在 define 后面

2. 有一些空格 不对。如下:

cout<

应该是: cout << a << "位先生在等待女伴" << endl << "分别是" ;

3. 函数命名时,最好使用英文函数

duichang ---> get_queue_len() 或者 GetQueueLen