Untitled

mail@pastecode.io avatar
unknown
c_cpp
15 days ago
529 B
2
Indexable
Never
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 )
        {
            
        }
Leave a Comment