Hi
try the following:
+++++++++++++++++++++
struct dir {
char name[100];
int root_dir;
:
};
struct fat {
struct dir*dir_away;
};

main()
{
fat *pFat = new struct fat[1];
pFat->dir_array = new struct dir[1];
pFat->dir_array->root_dir = 1;
}