对象还有操作,用于改变对象的状态,对象及其操作就是对象的 。
儿童乳牙早失后,牙齿间隙缩窄最快一般发生在拔牙后
A. 6个月以内
B. 6~9个月
C. 9~12个月
D. 12~15个月
E. 15~18个月
下面程序的运行结果是 。 #include <iostream> using namespace std; class count { static int n; public: count() { n++; } static int test() { for(int i=0;i<4;i++) n++; return n; } }; int count::n = O; int main() { cout<<count:: test()<<" "; count c1, c2; cout<<count:: test()<<endl; return 0; }
有如下程序: #include <iostream > using namespace std; class Point { public: static int number; public: Point( ) {number++ ; } ~Point() { number- -; } }; int Point::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