0
How do I "Insert an element (returning 1 if the insertion has been successful, and -1 otherwise) in a Queue"
I did it, what’s missing:
void enfilerar(tipo_fila *fila, int valor)
{
if (fila->fim<TAM_FILA)
{
fila->fim++;
fila->fila[fila->fim]=valor;
}
else
{
printf("Fila cheia!");
}
}
How is the esturtura
tipo_fila
?– Jefferson Quesado