Doubt on arguments

inside operator overloading of insertion operator it take two arguments(cin , Complex no) but when i write +overloading function to add complex numbers it says you can’t give more than one argument-> void operator+(Complex &x1, Complex &x2) is an error ,why?

@Rajan_42 please share the code

hi @Rajan_42 please share the code else mark your doubt as resolved if you dont have any doubt

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.