13.2k views
4 votes
Consider the following declaration: class strange { . . . }; Write a statement that shows the declaration in the class strange to overload the operator >>. Write a statement that shows the declaration in the class strange to overload the operator

User Jchung
by
4.6k points

1 Answer

3 votes

Answer:

overload the operator >>

friend std::istream& operator>>(std::istream &inStream, strange &s);

Step-by-step explanation:

User Jhauberg
by
5.3k points