Bonsoir,

Voici la portion de code qui me pose problème :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
typedef struct test
{
  char mot[100];
  int r;
 
} test_t;
 
test_t * tab = malloc (nb * sizeof(test_t));
tab[j]->mot = string;
tab[j]->r = calcul(string);
J'aimerai simplement construire un tableau de structure test_t mais le compilateur m'affiche : r.c:93: error: invalid type argument of ‘->’ (have ‘test_t’).

Merci d'avance pour toute aide.