单项选择题
已知程序中已经定义了函数test,其原型是int test(int,int,int);,则下列重载形式中正确的是( )。
A.char test(int,int,int);
B.double test(int,int,double);
C.int test(int,int,int=0);
D.float test(int,int,float=3.5F);
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
下列循环语句中有语法错误的是( )。
A.int i; for(i=1; i<0;i++)cout<<'*';
B.int i,j;for(i=1,j=0;i<10;i++,j++)cout<<'*';
C.int i=0;for(;i<10;i++)cout<<'*';
D.for(1)cout<<'*';
点击查看答案
单项选择题
通过运算符重载,可以改变运算符原有的( )。
A.操作数类型
B.操作数个数
C.优先级
D.结合性
点击查看答案
相关试题
以下程序段的执行结果为______。 #...
有以下程序 #include <iostream> usi...
下列程序的运行结果是______。 #in...
以下程序的输出结果是______。 #in...
派生类中的成员不能直接访问基类中的___...