是不可能使用间接(取消引用)运算符取消引用存储在数组中的对象的指针,还是我做错了什么? #include <iostream>
class A {
public:
virtual void test() {
std::cout << "A\n";
}
};
class B : public A {
public:
vo
阴影框是指针和持有值的元素都在堆 diagram 我非常需要拿出语句来实现的示意图。通过初始化指向堆中3级间接指向的内容,我非常感兴趣。 请帮我... 这就是我 int *c{ new int(18) },
***a{ new int**(&c) },
*e{ new int(22) },
**b;
b = &e;
b = nullptr;
e = nullptr;
a =