Bonsoir,
Voici la portion de code qui me pose problème :
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’).Code:
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);
Merci d'avance pour toute aide.