【正文】
39。 y = y endl。 } int a,b。 protected: int x, y。 }。 class A: public BASE { public: void get( int i, int j, int k, int l ) { BASE obj3。 ( 50, 60, 70, 80 )。 ()。 a = i。 b = j。 x = k。 y = l。 u = a + b + 。 v = y x + 。 } void print() { cout a = a 39。\t39。 b = b 39。\t39。 x = x 39。\t39。 y = y endl。 cout u = u 39。\t39。 v = v endl。 } private: int u, v 。 }。 void main() { BASE obj1。 A obj2。 ( 10, 20, 30, 40 )。 ( 30, 40, 50, 60 )。 ()。 ()。 } 點此輸入答案 58. (VC++綜合知識)CPaintDC,CClientDC,CWindowDC的區(qū)別? 點此輸入答案 59. 寫出下列程序的輸出結果。 include include void print(char *s) { (s,strlen(s)).put(39。\n39。)。 (s,6)39。\n39。 } void main() { (39。B39。).put(39。E39。).put(39。I39。).put(39。J39。).put(39。I39。).put(39。N39。).put(39。G39。).put(39。\n39。)。 char *str=I love BEIJING!。 coutThe string is 點此輸入答案 60. (VC++綜合知識)什么是句柄?它在Windows程序中的作用是什么? 點此輸入答案 61. (C++第19章綜合知識)寫出下列程序的輸出結果: include class A { public: A(int i=0) {m=i。 cout”Constructor called.” 點此輸入答案 62. (C++第11章綜合知識)寫出下面程序的輸出結果。 include class B { public: B() {} B(int i) {b=i。} virtual void virfun() {cout”B::virfun() called.\n”。} private: int b。 }。 class D:public B { public: D() {} D(int i,int j):B(i) {d=j。} private: int d。 void virfun() {cout”D::virfun() called.\n”。} }。 void fun(B *obj) { objvirfun()。 } void main() { B *pb=new B。 fun(pb)。 D *pd=new D。 fun(pd)。 } 點此輸入答案 63. (C++第19章綜合知識)寫出下列程序的輸出結果: include class A { private: int a。 public: A(int aa){a=aa。}。 ~A(){cout”Destructor A!” 點此輸入答案 64. (C++第19章綜合知識)寫出下列程序的輸出結果: include using namespace std。 class Test { public: Test() { cout”constructor of Test”