feat: Initial commit
This commit is contained in:
11
Laboratorio 8/Esercizio 1/Elementi.c
Normal file
11
Laboratorio 8/Esercizio 1/Elementi.c
Normal file
@@ -0,0 +1,11 @@
|
||||
// Laboratorio 8 - Esercizio 1 - Elementi.c
|
||||
// Matteo Schiff - s295565
|
||||
|
||||
#include<stdio.h>
|
||||
#include"Elementi.h"
|
||||
|
||||
Elemento leggiElemento(FILE * fp) {
|
||||
Elemento e;
|
||||
fscanf(fp, "%s %d %d %d %d %d %f %d", e.nome, &e.tipo, &e.dirIngresso, &e.dirUscita, (int *) &e.reqPreced, (int *) &e.finale, &e.valore, &e.diff);
|
||||
return e;
|
||||
}
|
||||
Reference in New Issue
Block a user