Getting error in my code

I am trying to overload >> operator in line 45 of my code.Getting compilation error as function takes only one argument.

Hey @sharad1103,

You have defined that function inside the class Complex.
So, you cannot access it directly.
Which causing error.

I have modified your code:

Hope, this would help.
Give a like if you are satisfied.