Hi,
I have this struct:
typedef struct empresa {
char nome_empresa [20];
MORADA morada_empresa;
int nif;
int telefone;
int anocriacao;
char cae [20];
ESTAGIARIO estagiarios [MAX_EST];
int num_est;
} EMPRESA;
And an array of this struct:
EMPRESA empresas [MAX_EMP];
My problem is that when i try to, manually assign values to the struct variables i get an error, this is how i do it:
empresas[i].nome_empresa = "a string";
The error i get is:
"incompatibel types in assignment"
I can't figure out what is causing this. Can anyone help, please?
Thanks.