pointers
What is dynamic type of object
What i think is that dynamic type means dynamically allocated object using new. In the following case, do you say p points to dynamic type or static type of object? In standard, it doesn\'t say about[详细]
2023-04-10 07:51 分类:问答Is there a way to run some code as an object is being destroyed?
In C# I know that my objects are garbage collected when they go out of scope and there are no more pointers/references to it. Is there a way to run some开发者_StackOverflow中文版 custom code when this[详细]
2023-04-10 06:54 分类:问答c# pass file pointer to unmanaged c++ dll to use for stdout
Please bear with me - I\'m a c# developer with little experience with C++, and this is a steep learning curve![详细]
2023-04-10 06:29 分类:问答How do I insert a value for an element of an array that is pointed by a pointer in a struct
I currently have a struct that contains a pointer to an array of pointers. I am trying to give a value to an element in the array of pointers, but I get a segmentation fault.[详细]
2023-04-10 05:52 分类:问答2 Dimentional array dereferencing ,how to evaluate through pointers
a[2][3] = {{-3,14,5},{1,-10,8}} *(a[j]+k) *(a[j+k-2]) (*(a+j))[k]) (*(a+k-1))[j] *((*(a+j))+k)) (**(a+j)+k)[详细]
2023-04-10 05:25 分类:问答passing a pointer of a reference/passing a reference of a reference
Do I get a us开发者_StackOverflowual pointer as I pass a pointer to a reference of a variable or do i get a pointer to the reference? And what do i get as I pass a reference to a reference?[详细]
2023-04-10 04:48 分类:问答Expected constructor, destructor, or type conversion before '*' token Templated linked list
My problem is really similar to this. However, my implementation differs in that I\'m using a tem开发者_运维技巧plated linked-list[详细]
2023-04-10 02:19 分类:问答C Double Pointer to Structure
I am trying to work out a double pointer to a structure in C and cannot figure out what is going wrong... The simple source is below:[详细]
2023-04-10 01:45 分类:问答weird difference between int pointer and float pointer
please see my codes below #include <stdio.h> #include <stddef.h> typedef struct _node { int a;[详细]
2023-04-10 01:36 分类:问答seg fault during printf on variable I just set
So I\'m seg faulting when I call printf in the following situation.I just can\'t see what I\'m doing wrong. Any ideas?Thanks a million.I\'ve marked the spot in the code where i get the seg fault with[详细]
2023-04-09 20:33 分类:问答