题目内容:
有如下程序: #inClude<iostream> using namespaCe std; Class Point{publiC: statiC int number; publiC: Point( )t.number++;} ~Point( ){number--;}}; , int P0int::number=0; int main( ){Point *ptr: Point A,B; Point*ptr_point=new Point[3]; ptr=ptr_point;’}Point C; Cout<<Point:::number<<endl; delete[]ptr; return 0; }执行这个程序的输出结果是( )。A.3
B.4
C.6
D.7
参考答案:
答案解析: