Hi!

Suppose i have a polygon with 5 points. They are constant.

I use "gotoxy()" to define the point positions.

Something like this:

```
x1=30; y1=10;
gotoxy(x1,y1);
cout<<"A";
x2=50; y2=10;
gotoxy(x2,y2);
cout<<"B";
//.....and so one up five
```

Now i should to give a another point (X,Y), and calculate with wich point defined early is too near.

For the first i thinkd that i cand substract X from earch point x1, x2....x5 and Y from y1, y2... y5 and to see the almost points, or who have less difference between coordinate. But i wrong.

How cand i do this? Some ideas please!