Hi, could some one please help me to check and see if I did thissnippet of code correctly? And according to these instructions?
- Function definition forthe Overloaded operator >> for cin
- Signature: friend istream &operator>>(istream&in, Complex &c)
- Reads in a double, then another double, then a character (for’i’).
- You are essentially reading in 3 things, but only 2 of thosethings (the first and second) will get stored in the real andimaginary data members. The third thing to read in is to get rid ofthe ‘i’ from the input stream
THIS IS WHAT I WROTE (MY SNIPPET FOR THIS). Will it dowhat the instructions ask?
class
OR
OR