单选题
C++
题号 #144313
有如下程序:
#include
using namespace std;
class point {
public:
static int number;
public:
point(){number++;
~point(){number-;}
};
imt point::number=0;
void main(){
point*ptr;
printA,B;
{
point*ptr_point=new point{3};
ptr=ptr_point;
}
pointC;
cout < delete[]ptr;
}
运行时输出的结果是( )。
参考答案
D
答案解析
暂无解析
你可能感兴趣的试题
A.10,20
B.30,40
C.20,30
D.50,50
A.10,2
B.12,10
C.12,2
D.2,2
A.f+g+
B.f0+g+
C.f+g0+
D.f0+g0+