全部题库 / C++ / 试题详情
单选题 C++
2008-03-20

有如下程序:  
#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; 
}  
运行时输出的结果是(  )。

A.3  
B.4  
C.6  
D.7

参考答案

D

答案解析

暂无解析

你可能感兴趣的试题