Chapter 11: Problem 17
Here is a definition of a class called Pairs. Objects of type Pairs can be
used in any situation where ordered pairs are needed. Your task is to write
implementations of the overloaded operator >> and the overloaded opera- tor <<
so that objects of class Pairs are to be input and output in the form
(5,6) (5,-4) (-5,4) or (-5,-6). You need not implement any constructor
or other member, and you need not do any input format checking.
#include
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.