Home > Back-end >  C the overloaded operators how to distinguish between before and after and -
C the overloaded operators how to distinguish between before and after and -

Time:10-27

Overloaded operators how to distinguish between c + + + + and + + and - before

CodePudding user response:

the parameter list

CodePudding user response:

A. & amp; A: : operator++ ();//prefix increment
A: A: operator++ (int);//increasing suffix

CodePudding user response:

/increasing/decreasing the operator
A& A: : operator++ ();//prefix increment
A: A: operator++ int ).//increasing suffix
A. & amp; A: : operator, ();//prefix diminishing
Aa: : operator - (int);//diminishing suffix

Attention to the differences in the prototype
  • Related