C语言重载运算符 10
classA{inti;public:A(inta=0){i=a;}friendA&operator++(A&)friendAoperator++(A&,int)};A&...
class A{
int i;
public:A(int a=0){i=a;}
friend A & operator++(A &)
friend A operator++(A &,int )
};
A&operator++(A &t)
{....}
A operator++(A &q,int )
{...}
A &operaor++(A &t)
A后面的这个&是什么意思?求解阿 展开
int i;
public:A(int a=0){i=a;}
friend A & operator++(A &)
friend A operator++(A &,int )
};
A&operator++(A &t)
{....}
A operator++(A &q,int )
{...}
A &operaor++(A &t)
A后面的这个&是什么意思?求解阿 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询