bruce@bruce-localhost~$cattest.cc#include#includeclassTest{public:staticvoidallocate(size_tn){ptr=(int*)::malloc(n);*ptr=4;}~Test(){std::cout
私有的靜態(tài)成員指針指向一塊堆內(nèi)存,如何釋放這個堆內(nèi)存?
慕桂英546537
2019-04-13 08:36:34