mic85rm
13-01-2011, 23:53
dove sbaglio?
int exit(struct posizione *,int,int);//prototipo della funzione che da quell'errore
struct posizione *P;
ESCI=crea_uscita_labirinto(L,N,M);
while((!exit(P,ESCI.x,ESCI.y)) //ecc ecc ecc.
struct uscita crea_uscita_labirinto(char **matrice,int eu_lrig,int eu_lcol)
{
int i,j,uscita=0;
struct uscita posizione;
//blah blah blah
posizione.x=i;
posizione.y=j;
return posizione;
}
}
int exit(struct posizione *,int,int);//prototipo della funzione che da quell'errore
struct posizione *P;
ESCI=crea_uscita_labirinto(L,N,M);
while((!exit(P,ESCI.x,ESCI.y)) //ecc ecc ecc.
struct uscita crea_uscita_labirinto(char **matrice,int eu_lrig,int eu_lcol)
{
int i,j,uscita=0;
struct uscita posizione;
//blah blah blah
posizione.x=i;
posizione.y=j;
return posizione;
}
}