M
michi
Hello everybody,
I have following problem: I have an array of pointers to structures:
table* tab = new table[10];
and structure table is like this:
struct table{
CSLL::node* chain;
};
so in this structure, there is one pointer. And I want to set all these pointers to 0 when I create the
array.
Yes, I can do that by:
for(int i=0;i<10;i++){
tab[a].chain = 0;
},
but I think I can do it better way. Any suggestions?
Thanks, michi.
I have following problem: I have an array of pointers to structures:
table* tab = new table[10];
and structure table is like this:
struct table{
CSLL::node* chain;
};
so in this structure, there is one pointer. And I want to set all these pointers to 0 when I create the
array.
Yes, I can do that by:
for(int i=0;i<10;i++){
tab[a].chain = 0;
},
but I think I can do it better way. Any suggestions?
Thanks, michi.