填空题

  【12】  是一系列相关函数的模型或样板,这些函数的  【13】  形式相同,只是所针对的  【14】  不同。

【参考答案】

【12】函数模板
<上一题 目录 下一题>
热门 试题

填空题
为解决在多重继承环境中因公共基类带来的 【10】 问题,C++语言提供了虚基类机制。
填空题
以下程序的执行结果为 【8】 。#include<iostream>using namespace std;class base{public:virtual void who( ){cout < < base class < <end1;};class derivel:public base{public:void who( ){cout < < derivel class < <end1;};}class derive2:public base{public:void who( ){cout< < derive2 class < <end1;}};void main( ){base obj1,* p;derivel obi2;derive2 obj3;p=&obj1;p->who( );p=&obj2;p->who( );p=&obj3;p->who( );}
相关试题
  • 以下程序的输出结果是 【7】 。#includ...
  • 我们通常用到的cin > > ,是属于 【...