David Faure writes: > What's the proper C++ way to do this (allocate a dynamic 2-dimension > array) ? Something like this : typedef vector< vector > twodimarray; unsigned int dimx = 5, dimy = 10; twodimarray v(dimx); for(twodimarray::iterator i = v.begin(); i != v.end(); ++i) i->reserve(dimy); Although most of the time you're probably better of with just typedef vector< vector > twodimarray; twodimarray v(dimx); and then store values in it with v[i].push_back(intValue); -- Guillaume >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<