在某类的公共部分有声明string operator++();和string operator++(int);则说明A.string operator++();是前置自增运算符声明B.string operator++();是后置自增运算符声明C.string operator++(int); 是前置自增运算符声明D.两条语句无区别
在某类的公共部分有声明string operator++();和string operator++(int);则说明
A.string operator++();是前置自增运算符声明
B.string operator++();是后置自增运算符声明
C.string operator++(int); 是前置自增运算符声明
D.两条语句无区别
相关考题:
在某类的公共部分有声明string operator++( );和string operator++(int);则说明A.string operator++( );是前置自增运算符声明B.string( )perator++( );是后置自增运算符声明C.string operator++(int);是前置自增运算符声明D.两条语句无区别
如果表达式++x/y中,++是作为友元函数重载的,/是作为成员函数重载的,则该表达式还可为A.(operator++(x)).operator/(y)B.(operator++(0)).operator/(y)C.operator/((operator++(x,0)),y)D.operator/((operator++(0)),y)
如果在表达式++x/y中,++是作为友元函数重载的,/是作为成员函数重载的,则该表达式还可为A.(operator++(x) ) .operator/(y)B.(operator++(0) ) .operator/(y)C.operator/((operator++(x,0) ) ,y)D.operator/((operator++(0) ) ,y)
如果表达式++x/y中,+ +是作为友元函数重载的,/是作为成员函数重载的,则该表达式还可为( )。A.(operator + +(x)).operator/(y)B.(operator + +(0)).operatr/(y)C.operator/((operator + + (x,0)),y)D.operator/((operator + + (0)),y)
如果表达式++x/y中,++是作为友元函数重载的,/是作为成员函数重载的,则该表达式还可为( )。A.(operator++(x)).operator/(y)B.(operator++(0)).operatr/(y)C.operator/((operator++(x,0)),y)D.operator/((operator++(0)),y)
如果在表达式++x/y中,“++”是作为友元函数重载的,…/”是作为成员函数重载的,则该表达式还可为( )。A.(operator++(x)).operator/(Y)B.(operator++(0)).operator/(Y)C.operator/((operator++(x,0)),Y)D.operator/((operator++(0)),Y)
如果表达式++i*k时中的“++”和“*”都是重载的友元运算符,则采用运算符函数调用格式,该表达式还可表示为()。A.operator* (i. operator++(), k)B.operator* (operator++(i), k)C.i.operator++(). operator* (k)D.k. operator* (operator++(i))
如果表达式++i*k中的“++”和“*”都是重载的友元运算符,若采用运算符函数调用格式,则表达式还可以表示为()。A.operator*(i.operator++(),k)B.operator*(operator++(i),k)C.i.operator++().operator*(k)D.k.operator*(operator++(i))