考虑到A类,我想将其创建限制为新的.那是
A* a = new A; // Would be allowed. A a; // Would not be allowed.
怎么可以实现呢?
c++ pointers
c++ ×1
pointers ×1