I'm new to coding, I'm portuguese, so my English is not so good.
My question:
int main()
{
typedef struct Coiso{
char cor_cabelo[100];
int idade;
float altura;
}Coiso;
printf ( "Insira a cor do cabelo do coiso\n");
scanf ( "%s", Coiso);
printf ( "%s\n", Coiso.cor_de_cabelo);
return 0;
}
So, I compiled this in geany and get an error: expected expression before "coiso"
.
Why do I get this error?