Может имелось в виду что-то вроде:
typedef struct { char pole1; char pole2; int pole3; } STRUCTURA1;
typedef struct { STRUCTURA1 *Pole4 ; } STRUCTURA2;
...
{ STRUCTURA2 STR; STR.Pole4 = new STRUCTURA1[10]; //Get memory for pole4 STR.Pole4[0].pole1 = 1; }
???
Или:
... { STRUCTURA2* STR; STR = new STRUCTURA2; STR->Pole4 = new STRUCTURA1[10]; STR->Pole4[0].pole1 = 1; }
ЗЫ не забудь освободить память.
Сообщение отредактировал Sat360 - Sep 4 2008, 09:55
|