dynamic-arrays
About the fate of malloc()ed arrays of arrays
my first question on Stackoverflow. Let me start with a bit of code.It\'s a bit repetitive so I\'m going to cut out the parts I repeat for different arrays (feel free to ask for the o开发者_StackOver[详细]
2023-01-09 14:23 分类:问答C++ vector copy elements?
I would like to use a dynamic array in C++ (something like an ArrayList or a Vector in Java.) In this example are the t1, t2... objects are copied or only its address is added to the vector?[详细]
2023-01-09 04:07 分类:问答Does std::vector use the assignment operator of its value type to push_back elements?
If so, why?Why doesn\'t it use the copy constructor of the value type? I get the following error: /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/vector.tcc: In member functio[详细]
2023-01-07 23:07 分类:问答SomeClass* initialEl = new SomeClass[5];
Should SomeClass* initialEl = new SomeClass[5]; necessarily compile, assuming SomeClass does not have a non-publicly declared default constructor?Consider:[详细]
2023-01-07 03:19 分类:问答Is a dynamic array automatically deallocated when it goes out of scope?
in this example procedure foobar; var tab:array of integer; begin setlength(tab,10); 开发者_如何学Goend;[详细]
2023-01-05 03:22 分类:问答How to create multi-dimensional jagged arrays in VbScript?
I need to create multi-dimensional array of strings. Each row of the array can have varying number of strings. Something like the follwing code:[详细]
2022-12-31 00:49 分类:问答how to Clean up(destructor) a dynamic Array of pointers?
Is that Destructor is enough or do I have to iterate to delete the new nodes?? #include \"stdafx.h\" #include<iostream>[详细]
2022-12-30 23:09 分类:问答Accessing the _CopyArray procedure
Is there a way to access (and call) procedures like _CopyArray that are defined in the interface in the unit System?[详细]
2022-12-28 10:13 分类:问答TStringList, Dynamic Array or Linked List in Delphi?
I have a choice. I have a number of already ordered strings that I need to store and access. It looks like I can choose between using:[详细]
2022-12-27 09:53 分类:问答Issue with dynamic array Queue data structure with void pointer
Maybe there\'s no way to solve this the way I\'d like it but I don\'t know everything so I better ask...[详细]
2022-12-27 01:32 分类:问答