[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: c++: 2D array
There is a book from Yashawant Kanetkar, something like Perls in C programming,
where he has many such tricks explained. Though in C.
. The book is bit outdated I presume. It talks about DOS and all. I haven't
check the latest edition.
And I feel that memcpy feature + dtor can give you nice and robust interface.
"Sarcar, Shourya (MED)" wrote:
> the memcpy feature is cool but beware, if you delete ptr, you have the
> problem of dangling pointers with ptr[1,2,3,4]
> but anyway, i like the recursive structure :)