|I have created list of points.
CList<CPoint, CPoint> m_PointList;
m_PointList contains the coordinates from the screen display.
I want to find the Right most top point from the list.
For e.g List contains following points:
Please consider the screen coordinate system. i.e X increases from left to right and Y increase from top to bottom.
With the above input points, the output of the program should be (1258,276).
In the above mentioned points the right most point is 1263 but the corresponding y co-ordinate is 643, which is greater than the 2nd point's y co-ordinate for which the x co-ordinate is 1258.
Hence as per the display, the right most top point is (1258,643).
Please suggest the algorithm to be used.