vector

Hello,
Lets say that i have the coordinates of a 2D space (x and y),
I want to store the coordinates as x and y in a vector to find the nearest neighbor of given points like i have:
#3.57 3.18#
#84.91 27.69
#93.40 4.62
#67.87 9.71
#75.77 82.35
#74.31 69.48
#39.22 31.71
#65.55 95.02
#17.12 3.44
#70.60 43.87

each coordinates is like x y and it shows points 1 to 10 (like 3.57 3.18 is point 1 in 2D space )

my question is that how i add all x and y coordinates in vector?
i started like this;

`struct point{
int x;
int y;
}`

`int main(){
vector<point> points(10);
point.x[]={"coordinates of x"};
point.y[]={"coordinates of y"};
}`

can someone help me if i am doing right or not?
Topic archived. No new replies allowed.