Hi Could One Please Help Check See Snippet Code Correctly According Instructions Function Q37296302

Hi, could some one please help me to check and see if I did thissnippet of code correctly? And according to these instructions?

  1. Function definition forthe Overloaded operator >> for cin
    1. Signature: friend istream &operator>>(istream&in, Complex &c)
    2. Reads in a double, then another double, then a character (for’i’).
    3. 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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.