填空题

设置虚基类的目的是 【12】 ,通过 【13】 表示虚基类。

【参考答案】

[12]解决二义性问题
<上一题 目录 下一题>
热门 试题

填空题
程序的结果为 【14】 。#include iostream.h template<typename T>T total(T*data){Ts=0;while(*data){s+=*data++;}return s;}int main(){ int x[] = { 2,4,6,8,0,12,14,16,18 };cout<<total(X);return 0;cout<<endl;}
填空题
语句cout<<’ n’还可表示为 【15】 。
相关试题
  • 以下定义数组中错误的是
  • 以下哪个特征不是面向对象思想中的主要特征
  • 下面程序的结果是 #include iostream.h...
  • C++语言中类定义中默认的访问权限是
  • 函数int test(int a,int b=l,int c...