How do I "Insert an element (returning 1 if the insertion has succeeded, and -1 otherwise) in a Row"
I did this, what is missing:
void enfilerar(tipo_fila *fila, int valor)
{
if (fila->fim<TAM_FILA)
{
fila->fim++;
fila->fila[fila->fim]=valor;
}
else
{
printf("Fila cheia!");
}
}