下面是重载为非成员函数的运算符的函数原型,其中错误的是()。
A、BigInt operator +(BigInt, BigInt);
B、BigInt& operator =(BigInt&, BigInt);
C、BigInt operator -(BigInt,BigInt);
D、BigInt& operator *(BigInt, BigInt);
A、BigInt operator +(BigInt, BigInt);
B、BigInt& operator =(BigInt&, BigInt);
C、BigInt operator -(BigInt,BigInt);
D、BigInt& operator *(BigInt, BigInt);
A、Value Value::operator -(Value);
B、ValueValue::operator -(int );
C、Value &Value::operator -(Value);
D、Value &Value::operator -(Value&);
A.Fraction operator+(Fraction,Fraction);
B.Fraction operator-(Fraction);
C.Fraction&operator=(Fraction&,Fraction);
D.Fraction&operator+=(Fraction&,Fraction);
A.Fraction operator+(Fraction,Fraction);
B.Fraction operator-(Praction);
C.Fraction& perator=(Fraction&,Fraction);
D.Fraction& operator+=(Fraction&,Fraction);
A.Decr&operator--{int};
B.Decroperator--(Decr&,int);
C.friend Decr& cperator--(Decr&);
D.friend Decr operacor--(Decr&,int);
A、参数表中不应该有任何参数
B、缺少对函数返回类型的说明
C、参数声明中缺少参数变量
D、函数声明中缺少函数体
A、cin是C++预定义的标准输入流函数
B、cin是C++预定义的标准输入流类
C、cin是C++预定义的标准输入流对象
D、以上答案都不对
A、Vector operator *();
B、Vector operator *(Vector);
C、int operator *(Vector);
D、Vector operator *(Vector, Vector);
A、friend MyNumber operator/(int, float);
B、friend MyNumber operator/(float, MyNumber);
C、friend MyNumber operator/(MyNumber, int);
D、friend MyNumber operator/(MyNumber, MyNumber);
A、d.operator++()
B、d.operator++(d)
C、operator++()
D、operator++(d)
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!