单选题:下面关于运算符重载的描述错误的是(  )。

  • 题目分类:C++
  • 题目类型:单选题
  • 号外号外:注册会员即送体验阅读点!
题目内容:
下面关于运算符重载的描述错误的是(  )。 A.运算符重载不能改变操作数的个数、运算符的优先级、运算符的结合性和运算符的语法结构
B.不是所有的运算符都可以进行重载
C.运算符函数的调用必须使用关键字0perator
D.在C++语言中不可通过运算符重载创造出新的运算符

参考答案:【答案仅供学习,请勿对照自行用药等】
答案解析:

有下列程序: #include<stdi0.h>voidmain(  ) {inta=S,b=1,t; t=(a<<2)

有下列程序: #includevoidmain(  ) {inta=S,b=1,t; t=(a<<2)|b;printf("%d\n"

查看答案

下列选项合法的标识符是(  )。

下列选项合法的标识符是(  )。 A.1_1 B.1-j C._11 D.1__

查看答案

背景说明:你是宏远公司行政秘书钟苗,下面是行政经理张明需要你完成的两项任务。电子邮件寄件人:Zhangming@sina

背景说明:你是宏远公司行政秘书钟苗,下面是行政经理张明需要你完成的两项任务。电子邮件寄件人:Zhangming@sina.corn收件人:Zhongmiao@

查看答案

We are both pleased to hear the news. Both_________are pIeas

We are both pleased to hear the news. Both_________are pIeased to hear the news

查看答案

What do we know about the small car?

What do we know about the small car?A.It is more expensive than the large Car.

查看答案