M
monkeydragon
hi,
i am making a struct within a struct like this..
struct upper
{
struct lower{
BYTE* row;
UINT width_row;
}
}
upper* table= new upper[100];
upper[x].lower* plates = new upper[x].lower[100];
how can i access each element in this way..
table[0].plates [0].width_row = 10; // for example
table[0].plates [1].width_row = 12;
table[n].plates [m].width_row = something;
.... so on
so that later i can do:
table[n].plates[m].row = new BYTE[table[n].plates [m].width_row];
Thx
i am making a struct within a struct like this..
struct upper
{
struct lower{
BYTE* row;
UINT width_row;
}
}
upper* table= new upper[100];
upper[x].lower* plates = new upper[x].lower[100];
how can i access each element in this way..
table[0].plates [0].width_row = 10; // for example
table[0].plates [1].width_row = 12;
table[n].plates [m].width_row = something;
.... so on
so that later i can do:
table[n].plates[m].row = new BYTE[table[n].plates [m].width_row];
Thx