【单选题】【消耗次数:1】
设有类A的对象Aobject,若用友员函数重载后置自减表达式,那么Aobject--被编译器解释为()
Aobject.operator--()
operator--(Aobject,0)
--(Aobject,0)
参考答案:
复制
纠错
相关题目
【单选题】 设有类A的对象Aobject,若用成员函数重载前置自增表达式,那么++Aobject被编译器解释为()
①  Aobject.operator++()
②  operator++(Aobject)
③  ++(Aobject)
④  Aobject::operator++()
【单选题】 如果表达式++i*k中的“++”和“*”都是重载的友元运算符,若采用运算符函数调用格式,则表达式还可以表示为( )。
①  operator*(i.operator++(),k)
②  operator*(operator++(i),k)
③  i.operator++().operator*(k)
④  k.operator*(operator++(i))
【单选题】 如果表达式++i*k中的“++”和“*”都是重载的友元运算符,若采用运算符函数调用格式,则表达式还可以表示为( )。
①  operator*(i.operator++(),k)
②  operator*(operator++(i),k)
③  i.operator++().operator*(k)
④  k.operator*(operator++(i))
【单选题】 逻辑表达式(x0 x=10)的相反表达式为?
①  x=0|| x=10
②  x=0 x=10
③  x=0 || x=10
④  x0 x10
【单选题】 表达式(12==0) && (1/0 < 1)的值为( ) 。
①  true
②  false
③  0
④  运行时抛出异常
【单选题】 若有定义:inta;且表达式!a的值为0,则表达式()的值为1。
①  a!=0
②  a==0
③  a=0
④  !(a0||a0)
【单选题】 已知:inti;fori=0;i<=10;i++);如果表达式1即i=0缺省那么完成表达式1功能的语句可以)
①  放在for语句的前面
②  放在循环体中
③  放在for语句的后面
④  放在程序的任何地方
【单选题】 x>0|| y==5的相反表达式为()。
①  x0 || y!=5
②  x>0 && y==5
【单选题】 x>0 || y==5的相反表达式为(????)
①  x0 || y!=5
②  x>0 && y==5
【单选题】 x>0 && x<=10的相反表达式为( )。
①  x10
②  x10
③  x0 && x>10
随机题目
【单选题】 ______forthefreeticket,Iwouldnothavegonetothefilmssooften.
①  If it is not
②  Were it not
③  Had it not been
④  If there were to
【单选题】 Who can you turn to in time of danger, if not _______ ?
①  ourselves
②  ours
③  we
④  us
【单选题】 — Did you visit the museum last week?—No, we________, but we spent too much time shopping.
①  could have
②  could
③  must have
④  must
【单选题】 —How many poor counties will there be in our province by 2010?—There will be only a few, if _______.
①  much
②  some
③  any
④  many
【单选题】 Theresearchissodesignedthatonce______nothingcanbedonetochangeit.
①  begins
②  having begun
③  beginning
④  begun
【判断题】 替代包括名词性替代、动词性替代和副词性替代。
①  正确
②  错误
【判断题】 替代词one\ones和它们所替代的名词词组中心词的“数”一定要一致。
①  正确
②  错误
【单选题】 While we admit his good points, we can see his bad ______.
①  ones
②  one
③  those
④  point
【单选题】 1. Would you like the red coat or the blue _____ ?
①  one
②  ones
③  another
④  it
【单选题】 After______for the job, you will be required to take a language test.
①  being interviewed
②  interviewed
③  having interviewed
④  interviewing