Initial commit

This commit is contained in:
Mauro Vietri 2025-04-23 21:09:12 -03:00
commit 441143482a
13 changed files with 230 additions and 0 deletions

26
horno.c Normal file
View file

@ -0,0 +1,26 @@
#include <stdio.h>
#include "horno.h"
void mostrarEmpanadas(Empanada horno[], int cantidad) {
int mostradas = 0;
for (int i = 0; i < cantidad; i++) {
if (horno[i].activa == 0) continue;
printf("Empanada %d: %s - %s (%d/%d)",
i + 1,
horno[i].relleno,
estadoToString(horno[i].estado),
horno[i].tiempo_actual,
horno[i].tiempo_coccion
);
if (horno[i].tiene_relleno == 0) printf(" [SIN RELLENO]");
printf("\n");
mostradas++;
}
if (mostradas == 0) {
printf("El horno está vacio!\n");
}
}