Hey guys I've been asked to rewrite this code into the correct form to output x,y and z. But i'm not too sure how to do that? I'm thinking it might be to do with rewriting to make x and y public rather than private and the just adding them to the cout. But that feels too simple.
The second question I have to write a default constructor that initializes x and y to zero.
The third question I have to create an object and display two elements of a pair object.