You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Programmazione1 pz 07-08
Salve,
Nel primo esercizio dell'homework 5 leggendo la seguente struct mi e'
venuto un dubbio: Il campo data_di_nascita non dovrebbe contenere 11
caratteri (considerando anche il carattere terminatore)?
typedef struct Studente {
char Nome [20];
char Cognome [20];
char data_di_nascita [10];
unsigned int Matricola;
} record_studente;
La ringrazio per l'eventuale risposta.
Marco Viscontini
unread,
Dec 20, 2007, 6:17:09 PM12/20/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Programmazione1 pz 07-08
Salve,
Ripensando al testo mi e' venuta in mente anche un'altra domanda: In
caso il file di input fosse vuoto cosa dovrebbe ritornare la funzione?
0 o -1?
grazie ancora,
Marco Viscontini
Julinda
unread,
Dec 21, 2007, 6:18:05 AM12/21/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Programmazione1 pz 07-08
salve,
nel caso in cui il file e' vuoto, la funzione deve ritornare 0.
Infatti in questo caso non c'è un
errore, ecco perche' non deve tornare -1.
saluti
julinda
Julinda
unread,
Dec 21, 2007, 6:18:40 AM12/21/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Programmazione1 pz 07-08
Salve,
ha ragione, cambio subito il testo dell'esercizio. Grazie per la
segnalazione.