Initial commit
This commit is contained in:
commit
441143482a
13 changed files with 230 additions and 0 deletions
26
horno.c
Normal file
26
horno.c
Normal 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");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue