Originariamente inviato da PunkIvi
Prova con gcc e fammi sapere.

Non và lostesso:


[michele@localhost c]$ gcc -o struct struct.c
struct.c: In function `main':
struct.c:13: `utente' undeclared (first use in this function)
struct.c:13: (Each undeclared identifier is reported only once
struct.c:13: for each function it appears in.)
struct.c:13: parse error before `ut1'
struct.c:16: `ut1' undeclared (first use in this function)
[michele@localhost c]$ g++ -o struct struct.c
/tmp/ccpCVh42.o: In function `main':
/tmp/ccpCVh42.o(.text+0x1e): the `gets' function is dangerous and should not be used.
[michele@localhost c]$


Come ha detto r0x il C standard vuole la parolina chiave struct davanti al tipo e la variabile.

L'omissione della parola "struct" è un implementazione del C++.