June 3rd, 2004, 10:34 AM
I would like to create a function which could allocate memory for any of pointer of pointer declared.
In my class C, i consider 2 pointers of pointers : **p and **q ( declared as public in class C), i would like to create a function AllocMemPointerOfPointer, which takes 3 input : RowSize, ColSize and Pointer. The function doesn't return value. It just allocate memory for Pointer, which is a pointer on RowSize pointers of any type .
How could i do that without allocate memory to a "copy" of Pointer ?
I hope my question is clear ! if not, feel free to ask me more informations !
Thanks in advance for your answers
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!