Documentos de Académico
Documentos de Profesional
Documentos de Cultura
X Prioridad 2
Y Prioridad 3
Z Prioridad 2
W Prioridad 1
aux->sgte = NULL;
if(q.delante == NULL){
q.delante = aux;
} else{
(q.detras)->sgte = aux;
q.detras = aux;
aux = q.delante;
while(aux != NULL){
aux = aux->sgte;
getche();
while(n != q.detras){
aux = n;
n = n->sgte;
if(n == NULL){
cout<<"Cola vacia"<<endl;
}else{
aux->sgte = n->sgte;
q.detras = aux;
cout<<"Valor eliminado"<<endl;
int p_aux;
char let_aux;
aux1 = q.delante;
while(aux1 != NULL){
aux2 = aux1->sgte;
while(aux2 != NULL){
let_aux = aux1->letra;
p_aux = aux1->prio;
aux1->letra = aux2->letra;
aux1->prio = aux2->prio;
aux2->letra = let_aux;
aux2->prio = p_aux;
aux2 = aux2->sgte;
aux1 = aux1->sgte;
}
encolar(q,letra,prioridad);
ordenaPrio(q);