万能百科  > 所属分类  > 

有类定义如下:class Type{public:Type(int i=0);Type operator-(int);friend Type operator+

有类定义如下:

class Type{

public:

Type(int i=0);

Type operator-(int);

friend Type operator+(Type,Type);

private:

int val;

};

若有对象定义Type c1;则下列语句序列中,错误的是

A.Type(3)+c1;

B.c1+Type(3);

C.3-c1;

D.c1-3;

正确答案:

C

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签