网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
操纵基因(operator)
参考答案
更多 “操纵基因(operator)” 相关考题
考题
在下面的运算符重载函数的原型中,错误的是A.Volume operator-(double,double);B.double Volume::operator-(double);C.Volume Volume::operator-(Volume);D.Volume operator-(Volume,Volume);
考题
将x+y*z中的“+”用成员函数重载,“*”是友元函数重载应写为( )。A.operator+(operator*(y,z))B.x.operator+(operator*(y,z))C.x.operator+(X*(y,z))D.x+(operator*(y,z))
考题
下列运算符函数中,肯定不属于类Value的成员函数的是( )。A.Value operator+(Value);B.Value operator-(Value,Value);C.Value operator*(int);D.Value operator/(Value);
考题
( 14 )下列运算符函数中肯定不属于类 FunNumber 的成员函数的是A ) int operator-(FunNumber);B ) FunNumber operator-();C ) FunNumber operator-(int);D ) int operator-(FunNumber , FunNumber);
考题
( 33 )下列是重载乘法运算符的函数原型声明,其中错误的是A ) MyClass operator*(double,double);B ) MyClass operator*(double,MyClass);C ) MyClass operator*(MyClass,double);D ) MyClass operator*(MyClass,MyClass);
考题
将x+y*z中的“+”用成员函数重载,“*”用友元函数重载应写为( )。A.operator+(operator*(y,z))B.x.operator+ (operator*(y,z))C.x.operator+(x*(y,z))D.x+(operator*(y,z))
考题
( 33 )将运算符 “ + ” 重载为非成员函数,下列原型声明中,错误的是A ) MyClock operator + (MyClock,long);B ) MyClock operator + (MyClock,MyClock);C ) MyClock operator + (long,long);D ) MyClock operator + (long,MyClock);
考题
如果表达式--x/y中的“--”和“/”是作为友元函数重载的运算符,采用运算符函薮调用格式,该表达式还可表示为( )。A.operator/(x.operato--(), y);B.operator/(operator--(x), y);C.x.operator--().operator/(y);D.y.operator/(operator--(x));
考题
下列是重载乘法运算符的函数原型声明,其中错误的是A.MyClass operator * (double, double);B.MyClass operator * (double, MyClass);C.MyClass operator * (MyClass, double);D.MyClass operator * (MyClass, MyClass);
考题
如果表达式-x/y中的“--”和“/”是作为友元函数重载的运算符,采用运算符函数用格式,该表达式还可表示为( )。A.operator/(x.operator--(),y);B.operator/(operator--(x),y);C.x.operator--().operator/(y);D.y.operator/(operator--(x));
考题
将x+y*z中的“+”用成员函数重载,“*”是友元函数重载应写为( )。 A.operator+(operator*(y,z))SX
将x+y*z中的“+”用成员函数重载,“*”是友元函数重载应写为( )。A.operator+(operator*(y,z))B.x.operator+(operator*(y,z))C.x.operator+(X*(y,z))D.x+(operator*(y,z))
考题
如果在表达式++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)
考题
如果表达式y*x++中,“*”是作为成员函数重载的运算符,“++”是作为友元函数重载的运算符,采用运算符函数调用格式,该表达式还可表示为A.x.operator++(0).operator*(y);B.operator*(x.operator++(0),y);C.y.operator*(operator++(x,0))D.operator*(operator++(x,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)
考题
Operator overloading operator+= which appends another String instance into current Stringinstance.
考题
重载输入流运算符>>必须使用的原型为()。A.istream operator>>(istream,);B
重载输入流运算符>>必须使用的原型为( )。A.istream operator>>(istream,<类名>);B.istream operator>>(istream,<类名>);C.istream operator>>(istream,<类名>);D.<类名>operator>>(istream,<类名>);
考题
An operator wants to move all files inside the directory /home/operator to the current directory. Which of the following commands will complete the task?()
A. mv /home/operator .B. mv /home/operator/* .C. mv /home/operator ../..D. mv /home/operator/all ../home/operator
考题
Which configuration command builds a read-write SNMP community named operator?()A、Snmp-server community operator.B、Snmp-server operator community.C、Snmp-server community operator rw.D、Snmp-server operator community rw
考题
如果表达式++j*k中的“++”和“*”都是重载的友元运算符,则采用运算符函数调用格式,该表达式还可以表示为()A、operator*(j.operator++(),k)B、operator*(operator++(j),k)C、operator++(j).operator*(k)D、operator*(operator++(j),)
考题
An operator wants to move all files inside the directory /home/operator to the current directory. Which of the following commands will complete the task?()A、mv /home/operator .B、mv /home/operator/* .C、mv /home/operator ../..D、mv /home/operator/all ../home/operator
考题
单选题Which configuration command builds a read-write SNMP community named operator?()A
Snmp-server community operator.B
Snmp-server operator community.C
Snmp-server community operator rw.D
Snmp-server operator community rw
考题
单选题如果表达式--x/y中的“--”和“/”是作为友元函数重载的运算符,采用运算符函数调用格式,该表达式还可表示为( )。A
operator/(x.operator-(),y);B
operator/(operator--(x),y);C
x.operator--().operator/(y);D
y.operator/(operator--(x))
考题
单选题已知将运算符“+”和“*”作为类Complex的成员函数重载,设c1和c2是类Complex的对象,则表达式c1+c2*c1等价于( )。A
c1.operator*(c2.operator+(c1))B
c1.operator+(c2.operator*(c1))C
c1.operator*(c1.operator+(c2))D
c2.operator+(c1.operator*(c2))
考题
单选题将x+y*z中的“+”用成员函数重载,“*”用友元函数重载应写为( )。A
operator+(operator*(y,z))B
x.operator+(operator*(y,z))C
x.operator+(x*(y,z))D
x+(operator*(y,z))
考题
单选题如果表达式y*x++中,“*”是作为成员函数重载的运算符,“++”是作为友元函数重载的运算符,采用运算符函数调用格式,该表达式还可表示为( )。A
x.operator++(0).operator*(y)B
operator*(x.operator++(0),y)C
y.operator*(operator++(x,0))D
operator*(operator++(x,0),y)
热门标签
最新试卷