Breaking up a struct

I need to somehow get the individual x and individual y value from a struct named Point. There are three sets of x and y values each stored into ONE x and ONE y. I don't know how this is even possible but it was given for an assignment. I need to somehow get the x and ys as stated above. I was told using a dot operator would be useful but I don't know how to and have tried searching for how to use the operator but none can quite help me with what I need. Thanks for any help you can give me!
That still doesn't explain how I would be able to do what I need to.
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>

struct point { int x ; int y ; };

int main()
{
    point pt = { 23, 89 } ;
    std::cout << "x == " << pt.x << " and y == " << pt.y << '\n' ;

    pt.x = 77 ;
    pt.y -= 36 ;
    std::cout << "x == " << pt.x << " and y == " << pt.y << '\n' ;
}
Thank you!
Topic archived. No new replies allowed.