填空题对基类数据成员的初始化必须派生类的构造函数中的{{U}} 【6】 {{/U}}处执行。
填空题重载的运算符保持其原有的{{U}} {{/U}}、优先级和结合性不变。
填空题要采用“cin,tout”进行输入输出时,必须包含的头文件是{{U}} 【14】 {{/U}}。
填空题为了表明一个函数不带返回值,应在定义函数时指定该函数类型为______。
填空题若有以下程序: #include<iostream> using namespace std; class Base public: void who()cout<<"Base"<<end1; class Derived1:public Base public: void who()cout<<"Derived"<<end1; ; int main() Base *p; Derived1 obj1; p=&obj1; p—>who(); return 0; 则该程序运行后的输出结果是 【9】
填空题执行这个程序的输出结果是( ); #include<iostream> using namespace std; class TestClass1 public: void fun1()cout<<"TestClass1/n"; virtual void fun2()cout<<"TestClass1/n"; ; class TestClass2:public TestClass1 public: void fun1()cout<<"TestClass2/n"; void fun2()cout<<"TestClass2/n"; ; void f(TestClass1b.fun2(); int main() TestClass2 obj; f(obj); return 0;
填空题若有: int x=25,y=14,z=19; 则在计算表达式x++<=25&&y--<=2&&++2<=18后,z的值为 [6] 。
填空题若a. b和C均是int型变量,则表达式a=(b=4)+(c=2)执行后,a的值为______。
填空题定义类对象时自动调用{{U}} 【9】 {{/U}}为类对象中的数据成员赋初值。
填空题以下函数模板main()的功能是:返回数组a中最大元素的值。请将横线处缺失部分补充完整。 template<typename T>Tmax(Ta[],intn) Tm=a[0]; for(int i:1;i(n;i++) if(a[i]>m______; return m;
填空题内联函数是通过{{U}} 【6】 {{/U}}来实现的,因此内联函数是真正的函数。
填空题将x+y * z中的“+”用成员函数重载," * "用友元函数重载应写为{{U}} {{/U}}。
填空题有以下程序: #include”iostream.h” void main() int i=10; int j=5; cout((j+i++<<endl; 的结果为______。
填空题 【5】 是一种信息隐蔽技术,目的在于将对象的使用者和对象的设计者分开。
填空题有以下程序: #include <iostream> using namespace std; class Base private: int a,b; public: Base(int x, int y) a=x; b=y; void Show() cout<<a<< ',' <<b<<end1; ; class Derived : public Base private: int c; public: Derived(int x, int y, int z) : Base(x,y),c(z) void Show() cout<<c<<end1; ; int main() Base b(50,50),*pb; Derived d(10,20,30); pb= pb->Show(); return 0; 运行后的打印结果为 【14】
填空题下列程序的运行结果是 【14】 。#include <iostream. h>class A int a, b; public: A() a=b=0; A(int aa, int bb) a=aa; b=bb; cout<<a<<''<<b<<end1; ;void main() A x, y(2,3),z(4,5);
填空题在有序表(12,24,36,48,60,72,84)中二分查找关键字72时所需进行的关键字比较次数为 【4】 。
填空题数据库系统阶段的数据具有较高独立性,数据独立性包括物理独立性和______两个含义。
填空题在关系模型中,把数据看成一个二维表,每一个二维表称为一个{{U}} 【5】 {{/U}}。
填空题索引从物理上分为聚簇索引和{{U}} {{U}} {{/U}} {{/U}}。