dynamic-arrays
Access Violation When Writing Dynamic 2D Array... Sometimes
This program is meant to generate a dynamic array, however it gives an access violation error when writing when given certain dimensions. Eg: R = 6, C = 开发者_如何学JAVA5 crashes, but then R = 5, C =[详细]
2022-12-26 05:16 分类:问答Cleaning up a dynamic array of Objects in C++
I\'m a bit confused about handling an array of objects in C++, as I can\'t seem to find information about how they are passed around (reference or value) and how they are stored in an array.[详细]
2022-12-23 07:25 分类:问答Java Null Pointer Exception
I attempted to adapt a class I had found on the web for a dynamic array of ints for a dynamic array of \"Entities,\" but now I am getting a \"NullPointerException.\"[详细]
2022-12-20 11:37 分类:问答C++ - is a pointer to a single value same as a size 1 dynamic array?
I have this snippet of code which I am considering to simplfy: if (numberOfResults > 1) { trackResult_ = new TrackResult[numberOfResults];[详细]
2022-12-10 22:38 分类:问答How to "watch" a C++ dynamic array using gdb?
Consider the following example: int size开发者_C百科 = 10, *kk = new int[size]; for (int i = 0; i < size; i++) {[详细]
2022-12-09 17:57 分类:问答C++ Array size x86 and for x64
Simple question, I\'m writting a program that needs to open huge image files (8kx8k) but I\'m a little bit confused on how to initialize the huge arrays to hold the images in c++.[详细]
2022-12-08 17:07 分类:问答