///////////////////////////////////////////////////////////////////////////// // The following will take care of allocating and deallocating arrays // in C++. This is cool stuff. // We also add support for linked lists. // // Written by Eleftherios Gkioulekas //////////////////////////////////////////////////////////////////////////// #ifndef __defined_cool_alloc_thing_that_elef_wrote #define __defined_cool_alloc_thing_that_elef_wrote // // 2 dimensional arrays // // The allocator template inline type **_new_2_array(int sz1,int sz2,type *stupid) { type **foo; foo = new (type *)[sz1]; for (int i=0;i inline void delArr(type **foo,int sz1) { for (int i=0;i inline type ***_new_3_array(int sz1,int sz2,int sz3,type *stupid) { type ***foo; foo = new (type **)[sz1]; for (int i=0;i inline void delArr3(type ***foo,int sz1,int sz2) { for (int i=0;i inline type ****_new_4_array(int sz1,int sz2,int sz3,int sz4,type *stupid) { type ****foo; foo = new (type ***)[sz1]; for (int i=0;i inline void delArr4(type ****foo,int sz1,int sz2,int sz3) { for (int i=0;i