typedef char tcontenedor[MAX]; typedef struct tcola{ tcontenedor datos1; tcontenedor datos2; int frente, fin, cont; }; void iniciar_cola(tcola &q) { q.frente=MAX/2; q.fin=MAX/2; q.cont=0; } int siguiente(int i) { if(i==MAX*2-1) i=0; else i++; return i; } bool cola_llena(tcola q) { return q.cont==MAX*2; } bool cola_vacia(tcola q) { return q.cont==0; } void agregar_cola(tcola &q, char valor) { if(cola_llena(q)==true) cout<<"no hay lugar"<