填空题设置虚基类的目的是{{U}} 【12】 {{/U}},通过{{U}} 【13】 {{/U}}表示虚基类。
填空题DBMS的数据控制功能包括完整性控制、并发控制、安全性控制和{{U}} {{U}} {{/U}} {{/U}}。
填空题数据结构包括数据的逻辑结构、数据的{{U}} 【2】 {{/U}}以及对数据的操作运算。
填空题下列程序在构造函数和析构函数中申请和释放类的私有成员,请完成该类的实现。 class Myclass public: Myclass(int num); ~ Myclass( );public: int *p;;Myclass: :Myclass( int hum) 【9】 Myclass:: ~ Myelass( ) 【10】 ;。
填空题下列程序的运行结果是{{U}} 【15】 {{/U}}。
#include<iostream, h>
class Sample
{
int a;
public:
Sample(int aa=0) {a=aa;}
~Sample() {cout<<"Sample="<<a<<;}
class Derived: public Sample
{
int b;
public:
Derived(int aa=0, int bb=0): Sample(aa) {b=bb;}
~De rived() {cout <<"Derived="<<b<<'';}
void main()
{
Derived dl (9)
}
填空题在C++语言中,唯一的一个三目运算符是{{U}} 【7】 {{/U}}。
填空题排序是计算机程序设计中的一种重要操作,常见的排序方法有交换排序、选择排序和{{U}} 【1】 {{/U}}等。
填空题在C++语言的结构化程序设计中,
14
是程序的基本组成单元;在面向对象设计框架中,
15
是程序的基本组成单元。
填空题在算法正确的前提下,评价一个算法的两个标准是 。
填空题如果一个类中定义了成员对象,则该类的对象和成员对象先被初始化的是________。
填空题在C++的面向对象程序设计框架中,{{U}} 【6】 {{/U}}是程序的基本组成单元。
填空题利用继承能够实现 【9】 。这种实现缩短了程序的开发时间,促使开发人员复用已经测试和调试好的高质量软件。
填空题在下面程序的画线处填上适当的内容,使程序执行后的输出结果为1/2005。 #include <iostream>
using namespace std; class Date{
public: Date(int m=1,int y=0):month(m),year(y){}
void Print( ){cout<<month<<"/"<<year<<endl;}
{{U}} (9) {{/U}}operator+(const Datedl,const
Date d2); private: int month,year;
}; {{U}} (10) {{/U}}operator+(const
Date dl,const Date d2){ int year,month;
year=d1.year+d2.year; month=d1.month+d2.month;
year+=(month-1)/12; month=(month-1)%12+1;
return Date(month,year); }
void main( ){ Date dl(3,2004),d2,d3(10);
d2=d3+dl; d2.Print( ); }
填空题程序设计分为面向过程程序设计和面向对象程序设计,具有继承性特点的程序设计称为{{U}} 【2】 {{/U}}程序设计。
填空题类模板不同于函数模板,类模板只可用______型参数。
填空题若结点的存储地址与其关键字之间存在某种映射关系,则称这种存储结构为{{U}} [3] {{/U}}。
填空题某二叉树的先根遍历序列为CEDBA,中根遍历序列为DEBAC,则其后根遍历序列为{{U}} [1] {{/U}}。
填空题问题处理方案的正确而完整的描述称为{{U}} 【3】 {{/U}}。
填空题在C++流类库中,根基类为______。
填空题请将下列模板类Data补充完整。
template
class Data{
public:
void put (T v) { val=v; }
{{U}}【15】{{/U}} get() //返回数据成员val的值,返回类型不加转换
{ return val; }
private:
T val;
};
