Ho un problema nell'inserire un valore di tipo char nel campo di una struttura passandogli come valore un altra variabile di tipo char:
struct Mossa{
char NomeG[10];
char mos1[10];
char mos2[10];
int tem1;
int tem2;
struct Mossa *successivo;
} Mos;
struct Mossa *testa=NULL;
struct Mossa *nuovo=NULL;
void Memorizza(char Nome[10],char mos1[10],char mos2[10],int t1,int t2)
{
nuovo = (struct Mossa*)malloc(sizeof(struct Mossa));
nuovo->successivo = testa;
testa = nuovo;
Mos.mos1=mos1;/*come errore da" incompatible types in assignment" a tutte le assengnazoni tra stringhe*/
Mos.mos2=mos2;
Mos.NomeG=Nome;
Mos.tem1=t1;
Mos.tem2=t2;
}
Come posso fare per poter effettuare questo tipo di assegnazione? HELP ME!!!!!
travis