t*****e 发帖数: 53 | 1 if yes, under what scenario? if not, why? |
r***h 发帖数: 460 | 2 my answer would be yes.
the value of this point should be its own address.
【在 t*****e 的大作中提到】 : if yes, under what scenario? if not, why?
|
c*****k 发帖数: 467 | |
y**i 发帖数: 1112 | 4 How?
If there is a value, say
void a;
the point to this value should be
void *pa = &a;
the point to this point should be
void **pb = &pa;
can pb = pa?
the type cannot match, right?
【在 r***h 的大作中提到】 : my answer would be yes. : the value of this point should be its own address.
|
y**i 发帖数: 1112 | 5 if this is correct, can we write this->this->...?
【在 c*****k 的大作中提到】 : this
|
z***e 发帖数: 5393 | 6 "this" is private, you cannot call this->this->... outside the class.
inside the class, yes you can.
example:
struct Node
{
Node* next;
}
Node* pNode = new Node();
pNode->next = pNode;
【在 y**i 的大作中提到】 : if this is correct, can we write this->this->...?
|
Q******e 发帖数: 85 | 7 int a = 4;
int *p = &a;
p = (int*) &p; |
h*******u 发帖数: 15326 | 8 pa=(void *)pb;
【在 y**i 的大作中提到】 : How? : If there is a value, say : void a; : the point to this value should be : void *pa = &a; : the point to this point should be : void **pb = &pa; : can pb = pa? : the type cannot match, right?
|