单项选择题
下列函数模板声明中,合法的是
A.template
Tabs(Tx);
B.templateclass
Tabs(Tx);
C.templateT
abs(Tx);
D.template<>Tabs(Tx);
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
执行语句序列 int n=0; for (int i=60; i>0; i-=3) n++;之后,变量n的值是
A.20
B.21
C.60
D.61
点击查看答案&解析
单项选择题
有如下程序:#include#includeusing namespace std;class TV{public:TV(int s=41):size(s) { cout<<’C’; }~TV() { cout<<’D’; }void Print() const { cout<<size; }private:int size;};int main(){TV room1(54);TV *room2=new TV[2];room1.Print();delete[] room2;return 0;}运行时的输出结果是
A.CCC54DDD
B.CCC54DD
C.C54
D.54
点击查看答案&解析
相关试题
请使用VC6或使用【答题】菜单打开考生目录...
请使用VC6或使用【答题】菜单打开考生文件...
请使用VC6或使用【答题】菜单打开考生文件...