|
From: Marcos C. <ca...@un...> - 2002-06-05 11:35:15
|
Hello, I made an implementation with STL and now I want to develop another equivalent with pointers to compare them. I also want to compare the results gotten with different compilers. In relation to STL implementation, the results of DEV-C++ had been superior in the majority of the times. Thanks for the help. Marcos Ioannis Vranos wrote: > I assume C++: > > double (*p)[1024]=double int[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... > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |