单项选择题

下列运算符中,( )运算符在C++中不能重载。

A.&&
B.[]
C.::
D.new
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序 #include<iostream.h> float fun(int x,int y) return(x+y); void main() int a=2,b=5,c=8; cout<<fun((int)fun(a+c,b),a-c); 程序运行后的输出结果是( )。
A.编译出错
B.9
C.21
D.9.0
单项选择题
重载输入流运算符>>必须使用的原型为( )。
A.istream& operator>>(istream&,<类名>&);
B.istream& operator>>(istream,<类名>);
C.istream operator>>(istream,<类名>&);
D.<类名>operator>>(istream&,<类名>&);
相关试题
  • 以下程序的执行结果是( )。 #include...
  • 下列程序输出的结果是( )。 #include...
  • 以下程序的输出是( )。 struct st in...
  • 下列程序用来判断数组中特定元素的位置所在...
  • 分析下面程序,该程序的运行结果是( )。...