une structure de structure
Bonjour
je vous demande comment acceder a un element data dans une struscture de structure ??
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
typedef struct{
int countelement;
struct element *elemento;
struct fkeys *keys;
}foglia;
typedef struct{
int position;
void *dato;
struct element *prossimo;
}element;
typedef struct{
long indirizzoelemento;
struct keys *prossimokey;
struct foglia *item;
}keys; |
est ce que je peut acceder comme ça ??
void *dato ;
foglia *radice;
radice->elemento->dato=dato; // malheuresement ça marche pas ???