Untitled
unknown
c_cpp
2 years ago
529 B
7
Indexable
double firstPoint = 0, secondPoint, ind =;
for ( i = 0; i < size - 1; i++ )
for ( j = 0; j < size - i - 1; j++ )
{
double currDistBetwPoint = DistanceBetwPoint( arr[ j ].x, arr[ j ].y );
if ( currDistBetwPoint > firstPoint )
{
firstPoint = currDistBetwPoint;
ind = j;
}
double currDistBetwPoint = DistanceBetwPoint( arr[ j ].x, arr[ j ].y );
if ( currDistBetwPoint > secondPoint )
{
}Editor is loading...
Leave a Comment