判断题 ( )压缩指数Cc值越大,土的压缩性越高。
单项选择题 有如下程序; #include<iostream> usingnamespacestd; clasBasel{ public: Basel(intd){cout<<d;} -Basel(){} }; classBase2{ public: Base2(intd){out<<d;} ~Base2(){} }; classDerived:publicBase1,Base2{ public: Derived(inta,intb,intC,intd): Basel(b),Base2(a),b1(d),b2(c){} private: intb1; intb2; }; intmain(){ Derivedd(1,2,3,4); return0; } 运行时的输出结果是( )。
单项选择题 有如下程序: ClassBase{ public: intdata; }; ClassDerived1:publicBase{}; ClassDerived2:protectedBase{}; intmain(){ Derived1d1; Derived2d2; d1.data=0;//① d2.data=0;//② return0; } 下列关于程序编译结果的描述中,正确的是( )。