填空题
如果一个函数模板声明列出了多个参数,则每个参数之间必须使用逗号隔开,每个参数都必须重复使用关键词 【12】 。
【参考答案】
class
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
给出以下程序的执行结果 【9】 。 #include <iostream> using namespace std; int n=1; void Fun(); int main () n++; Fun ( ); if (n>0) int n=5; cout<< Block: n= <<n<< , ; cout<< Main: n= <<end1; return 0; void Fun ( ) int n=10; cout<< Fun: n= <<n<< , ;
点击查看答案&解析
填空题
设在主函数中有以下定义和函数调用语句,且fun()函数为void类型,请写出fun()函数的首部 【8】 。 int main ( ) double s[10] [22]; int n; … fun (s); … return 0;
点击查看答案&解析
相关试题
下面程序的运行结果为 【13】 。 #in...
有如下程序: #include <iostream> u...
有以下程序: #include <iostream> ...
表达式x=operator-(y,z)还可以表示为...
C++的类继承中,默认的继承方式是 【1...