【单选题】【消耗次数: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
随机题目
【判断题】 替代包括名词性替代、动词性替代和副词性替代。
①  正确
②  错误
【判断题】 替代词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
【单选题】 Beeristhemostpopulardrinkamongmaledrinkers,_____overallconsumptionissignificantlyhigherthanthatofwomen.
①  whose
②  which
③  that
④  what
【单选题】 _____muchisknownaboutwhatoccursduringsleep,theprecisefunctionofsleepanditsdifferentstagesremainlargelyintherealmofassumption.
①  Because
②  Since
③  For
④  While
【单选题】 Ive never been to Beijing, but its the place _______.
①  where Id like to visit
②  in which Id like to visit
③  I most want to visit
④  that I want to visit it most
【单选题】 A survey was carried out on the death rate of new born babies in that region,________were surprising.
①  as results
②  which results
③  the results of it
④  the results of which
【单选题】 The hours _______ the children spend in their one-way relationship with television people undoubtedly affect their relationships with real-life people.
①  in which
②  on which
③  when
④  that