|
From: Ioannis V. <no...@ho...> - 2002-06-04 19:12:49
|
Sorry I am after the regular format and my emails will suck for some days. :) Ioannis -----Original Message----- From: Ioannis Vranos [mailto:no...@ho...] Sent: Tuesday, June 04, 2002 10:05 PM To: dev...@li... Subject: RE: [Dev-C++] Memory problem I assume C++: ===> double (*p)[1024]= new double[1024][1024]; // ... delete[] p; But I strongly recommend: #include <vector> // ... using std::vector; vector<vector<double> >array(1024, vector<double>(1024)); // ... // The container object goes out of scope and clears itself automatically. Ioannis -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Marcos Carrard Sent: Monday, June 03, 2002 8:12 PM To: dev...@li... Subject: [Dev-C++] Memory problem Hello! I am with a memory problem. I need to create three objects in the Dev-C++ with 1024x1204 positions of double. The program compels normally, but it does not work because not obtain place enough in memory for all objects. What I can do to make this? My program work with pointers for the objects. Thanks for any help. Marcos ca...@un... |