#include<fastream>
#include<stdlib.h>
#include<cmath>
Struct Punto{
int x;
int y;
};
int main()
{ ifstream f1;
f1.open(“puntos.txt”);
ofstream f2;
f2.open(“EcuacionRecta.txt”);
if (f1.fail() || f2.fail())
exit(1);
double DistML=-1;
double Dist;
f1>>p.x>>p.y;
if (Dist>=DistML)
{ DistML=Dist;
pmlo.x=p.x;
pmlo.y=p.y;
if (Dist<= DistMC)
{ DistMc = Dist;
pmco.x = p.x;
pmco.y=p.y;
f2<<”Longitud = “<<RectaLong<<”u”<<endl;
f1.close(); f2.close();
return 0;