单选题下面是重载为非成员函数的运算符函数原型,其中错误的是( )。AFraction operator+(Fraction,Fraction);BFraction operator-(Fraction);CFraction operator=(Fraction,Fraction);DFraction operator +=(Fraction,Fraction);
单选题
下面是重载为非成员函数的运算符函数原型,其中错误的是( )。
A
Fraction operator+(Fraction,Fraction);
B
Fraction operator-(Fraction);
C
Fraction& operator=(Fraction&,Fraction);
D
Fraction& operator +=(Fraction&,Fraction);
参考解析
解析:
C++语言规定,“=”运算符只能作为成员函数重载,不能作为非成员函数重载。
C++语言规定,“=”运算符只能作为成员函数重载,不能作为非成员函数重载。
相关考题:
Cork permits only a minute fraction of air to enter the bottle and allows the wine to age slowly to perfection.() 此题为判断题(对,错)。
Risk event probability is defined as:A the total number of possible events divided into the expectations or frequency of the risk eventB the number of times the risk event may occurC the fraction of the total project tasks which may be affected by the risk eventD the total number of possible events divided into the consequences of the risk event.E A and B
下面是重载为非成员函数的运算符函数原型,其中错误的是A . Fraction operator + (Fraction, Fraction);B . Fraction operator - (Fraction);C . Fraction perator = (Fraction, Fraction);D . Fraction operator += (Fraction, Fraction);
In moving forward, a ship imparts forward motion to the water at the stems, this is known as _____.A.the speed of the vesselB.the speed of the propellerC.the wakeD.the wake fraction
下列是重载为非成员函数的运算符函数原型,其叶错误的是()。A.Fraction operator+(Fraction,Fraction);B.Fraction operator-(Fraction);C.Fraction&operator=(Fraction&,Fraction);D.Fraction&operator+=(Fraction&,Fraction);
Computers are()of doing billions of calculations in a fraction of a second now. A.able;B.capable
下面是重载为非成员函数的运算符函数原型,其中错误的是( )。A.Fraction operator+ (Fraction,Fraction);B.Fraction opemtor-(Fraction);C.Fraction perator=(Fraction,Fraction);D.Fraction operator+=(Fraction,Fraction);
下列是重载为非成员函数的运算符函数原型,其中错误的是( )。A.Fractionoperator+(Fraction,Fraction);B.Fractionoperator-(Fraction);C.Fraction&operator=(Fraction&,Fraction);D.Fraction&operator+=(Fraction&,Fraction):
下列是重载为非成员函数的运算符函数原型,其中错误的是( )。A.Fraction operator+(Fraction,Fraction);B.Fraction operator-(Fraction);C.Fractionoperator=(Fraction,Fraction);D.Fractionoperator+=(Fraction,Fraction);
下面是重载为非成员函数的运算符函数原型,其中错误的是A.Fraction operator+(Fraction,Fraction);B.Fraction operator-(Fraction);C.Fraction perator=(Fraction,Fraction);D.Fraction operator+=(Fraction,Fraction);
若为Fraction类重裁前增1运算符++,应在类体中将其声明为( )。 A.FractionSXB 若为Fraction类重裁前增1运算符++,应在类体中将其声明为( )。A.Fraction&poerator++( );B.Fraction&poeralor++(int);C.friendFraction&operator++( ):D.friendFraction&operator++(int);
下面是重载为非成员函数的运算符的函数原型,其中错误的是( )。A.Fraction operator+(Fraction,Fraction);B.Fraction operator一(Fraction);C.Fractionoperator=(Fraction,Fraction);D.Fractionoperator+=(Fraction,Fraction);
以下关于Abis链路配置的说法不正确的是() A.在一个IMA组中不允许同时存在IMA链路和FRACTION ALIMA链路;B.对于同一个IMA组中的FRACTION ALIMA链路,每条链路占用的E1/T1时隙的个数必须相等。C.在同一条E1/T1电路上,只能配置1条FRACTION ALIMA链路。D.BTS3601C的Abis只能配置为UNI方式。
Modern computers based on() are millions to billions of times more capable than the early machines,and occupy a fraction of the space。Simple computers are small enough to fit into mobile devices, a mobile computers can be powered by small batteries. Personal computers in their va A.Central Processing unitB.integrateD.circuitsC.HarD.diskD.software integration
The life cycle provides the basic ()for managing the project, regardless of the specific work involved. A.plan B.fraction C.main D.framework
单选题In moving forward, a ship imparts forward motion to the water at the stems, this is known as ().Athe speed of the vesselBthe speed of the propellerCthe wakeDthe wake fraction
单选题As a ship moves through the water,it drags with it a body of water called the wake. The ratio of the wake speed to the ship’s speed is called().Apropeller velocityBspeed of advanceCwake distributionDwake fraction
单选题若为Fraction类重载前增1运算符++,应在类体中将其声明为( )。AFraction operator++();BFraction operator++(int);Cfriend Fractionoperator++();Dfriend Fractionoperator++(int);
单选题以下关于Abis链路配置的说法不正确的是()A在一个IMA组中不允许同时存在IMA链路和FRACTION ALIMA链路;B对于同一个IMA组中的FRACTION ALIMA链路,每条链路占用的E1/T1时隙的个数必须相等。C在同一条E1/T1电路上,只能配置1条FRACTION ALIMA链路。DBTS3601C的Abis只能配置为UNI方式。
名词解释题腐殖物质组合 fraction of humic substances