For part one you will do Z.x or Z.y depending on which part of the point you wish to access. As far as the second question can you rephrase please. From what I am understanding you want a static array like: Point points[2]; or something along those lines.
Alternately (you probably can't do this, just here for completion's sake:
1 2 3 4 5 6 7 8 9 10
std::istream& operator>> (std::istream& in, Point& p) {
in >> p.x >> p.y;
return in;
}
// ...
Rectangle t;
std::cout << "What is first corr." << std::endl;
std::cin >> t.first_point;
As for storing two variables in one member, there are a few ways. The most common and easy way is to use a struct (like you did with the 'Point' structure). Alternate ways include an array (don't forget to allocate and deallocate it properly, maybe use a smart pointer) or std::pair:
Question: Find coordinates of the center of t, returning information as a Point structure. (If either x or y coordinate of a center is not an integer, store its truncated value instead.)
I dont understand this question very much (ENglish is my 7th lang!)