I want to write it with friend operator function.this program gives two errors.what's the problem?
1 2
Error 1 error C2678: binary '+' : no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
IntelliSense: no operator"+" matches these operands