On Wed, 25 Apr 2001, Raphael DephiNit Pereira wrote:

> Olá novamente,
>
> Desculpem o offtopic e a besteira que escrevi. Logo após enviar o email,
> descobri que ainda estava tudo errado. A resolução correta é
>
> float ** gera_matriz(int i, int j)
> {
>       int contador;
>       int **matriz;
>
>       if(!(matriz = malloc(sizeof(float *) * i)))


voce declarou a matriz como int e esta alocando float?

acho que ainda não está tudo correto!


[]s,
Mario O.de Menezes            "Many are the plans in a man's heart, but
    IPEN-CNEN/SP                 is the Lord's purpose that prevails"
http://curiango.ipen.br/~mario                 Prov. 19.21

Responder a