单项选择题

下列运算符中,( )运算符在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&,<类名>&);
相关试题
  • 以下程序的执行结果是 【14】 。 #in...
  • 下面程序的输出结果为 【15】 。 #in...
  • 一个关系表的行称为 【3】 。
  • 非成员函数只有在声明为类的 【10】 才...
  • 多态性具体体现运行和编译两个方面,在程序...