Bonjour,
Voici le code interressant:
typedef struct
{
float x;
float y;
} fPoint;
int main( int argc, char **argv, char **env )
{
static fPoint *tabCentre, **tabSouris;
AllocTab( &tabCentre, &tabSouris );
return( 0 );
}
int AllocTab( fPoint **pTabCentre, fPoint ***pTabSouris )
{
int i, nbMotif, nbSouris;
*pTabSouris = (fPoint **)malloc( nbMotif * sizeof( fPoint * ) );
fo
Forum:
Développement