[单选题]

将前缀运算符“--”重载为非成员函数,下列原型中,能正确用于类中说明的是( )。

A.Decr&operator--{int};

B.Decroperator--(Decr&,int);

C.friend Decr& cperator--(Decr&);

D.friend Decr operacor--(Decr&,int);

参考答案与解析:

相关试题

将前缀运算符“£­£­”重载为非成员函数,下列原型中,能正确用于类中说明的是()