Hello. I'm doing a program for university using structs. Altough i've come up with a problem and i cannot figure out what i'm doing wrong. ANy help would be apreciatted.
Here's the piece of code that doesnt compile
If i take out the = and dont initialize the variable there's no problem at all and the program runs just fine. Any tips?Code:struct espectaculo { char nomedoespectaculo[50]; int salaocupada=0; int dia; int mes; int ano; }espectaculo[31];