   dynamic pointer arrays
  How to allocate memory for a one dimensional pointer array using the new operator?for exemple :int **links; // the arrayand I want to create 10 (int*).with malloc, it would be that :links = (int**)malloc( sizeof( int ) * 10 );but I haven''t found how (I must be retarded :x).can someone help me please? thanks.(sorry for my bad english)  
  int** array = new int*[10];   // uninitialisedint** array = new int*[10](); // default (NULL) initialised;    or for a dynamic array of pointers :#include<vector>std::vector<int> array( 10 ); // NULL initialised;of reference-counted pointers#include<vector>#include<boost/shared_ptr> // from www.boost.orgstd::vector<boost::shared_ptr<int> > array(10); // NULL initialisedif your pointers are supposed to represent arrays :std::vector<std::vector<int> > // Two-dimensional dynamic arrayAnd so on, the variations are endless ... check the std::vector, boost::shared_ptr, boost::shared_array classes.Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]C++ Stuff [ MinGW | Loki | SDL | Boost.  | STLport | FLTK | ACCU Recommended Books ][edited by - Fruny on August 20, 2002 7:01:01 PM];  ok I will try!thank you.  