dynamic-arrays
Why this code generates an exception?
I wrote some code today that will list all the sections in a PE file...the code works but at the end it gives an exception :Invalid pointer operation... and i don\'t know why...could someone please fi[详细]
2023-03-16 07:32 分类:问答Using a dynamic array inside a class -- Receiving error at compile time
QUESTION ANSWERED IN COMMENTSBecause of my reputation, I can\'t answer it in the regular fashion. I\'ll add details in an answer later, already addressed in comments. Thanks.**[详细]
2023-03-10 04:09 分类:问答Is there a way to distinguish between new's and new[]'s return value?
Consider this code: int *p = new int; cout << sizeof(*p); delete p; As expected the result is 4. Now, consider this other code:[详细]
2023-03-10 01:26 分类:问答PHP Most Efficient way to Convert a String with Commas Separating Values to an Array?
I\'ve done some searching around and most posts are using the php explode function to separate a string and store its values into an array.[详细]
2023-03-08 22:20 分类:问答Why are dynamic arrays needed in C++?
I don\'t under开发者_JS百科stand the need for dynamic arrays. From what I understand so far, dynamic arrays are needed because one cannot always tell what size of array will be needed at runtime.[详细]
2023-03-06 22:57 分类:问答Dynamic array in Linux kernel module
I am working on a modificatio开发者_开发问答n of PKTGEN for sending packets containing sequences of the Fibonacci series. This is my very first time with kernel development, so I am not very familiar[详细]
2023-03-06 08:45 分类:问答The difference between "&(epage->incoming[0]) = spage;" and "&(epage->incoming[p2]) = spage;"
The last line of this particular code block produces the error \"lvalue required as left operand of assignment\". The confusion lies in why the last line throws this error while the second to last lin[详细]
2023-03-05 09:09 分类:问答C++ Dynamic multidimensional array problem
I\'m developing a 2d-platformer. Everything was fine until I\'ve got some hard to solve problem. Level map is stored in dynamic multidemension array(char **map). It works fine, until I want to redefin[详细]
2023-03-05 01:28 分类:问答How to free a pointer to a dynamic array in C?
I create a dynamic array in C with malloc, ie.: myCharAr开发者_如何学Goray = (char *) malloc(16);[详细]
2023-02-18 18:07 分类:问答Separating Arrays As Variables-PHP
How can I use the second array as a seperate variable? and print it as, for example, a link. My current code is:[详细]
2023-02-18 10:07 分类:问答