Thanks for sharing the code
But i have some little comment, you don't store the second "dimension" value so if you have to iterate the array, you need to remember the size
Anyway, i agree with what zlatomir said... you can use std::vector or QVector, these are allready tested, they don't leak, have great performance and integrate well with algorithms (stl or qt)
Bookmarks