单项选择题
关于在调用模板函数时模板实参的使用,下列叙述中正确的是
A.对于虚拟类型参数所对应的模板实参,如果能从模板函数的实参中获得相同的信息,则都可以省略
B.对于虚拟类型参数所对应的模板实参,如果它们是参数表中的最后的若干个参数,则都可以省略
C.对于虚拟类型参数所对应的模板实参,若能够省略则必须省略
D.对于常规参数所对应的模板实参,任何情况下都不能省略
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有如下程序: #include<iostream> using namespaee std; class Base protected: Base( )tout<<’A’; Base(char C) cout<<c; ; class Derived:public Base public: Derived(char C) eout<<c; ; int lnaiD( ) Derived dl(’B’); return 0; 执行这个程序屏幕上将显示输出
A.B
B.BA
C.AB
D.BB
点击查看答案&解析
单项选择题
有如下程序: #include<iostream> #include<iomanip> using namespace std; int main( ) cout<<setprecision(3)<<fixed cout<<12.345<<______<<34.567; return 0; 若程序的输出是: **12.345**34.567 则程序中下画线处遗漏的操作符是
A.setprecision(3)
B.fixed
C.setfill(’*’)
D.stew(8)
点击查看答案&解析
相关试题
有如下程序: #include<iostream> usi...
有如下程序: #include<iostream> usi...
有如下程序: #include<iostream> usi...
有如下程序: #include<iostream> #i...
有如下程序: #lnelude<IOstream< usi...