//04.* 作 者: 马德鹏
//05.* 完成日期:2014 年 5 月20 日
//06.* 版 本 号:v1.0
//07.*
#include <iostream>
#include <cstdio>
#include <cmath>
#include <iomanip>
using namespace std;
class Point
{
public:
Point(double a=0,double b=0,double c=0,double d=0):x1(a),y1(b),x2(c),y2(d) {}
void input();
friend void output(Point &);
private:
double x1;
double y1;
double x2;
double y2;
};
void Point::input()
{
double a,b,c,d;
cin>>a>>b>>c>>d;
x1=a;y1=b;x2=c;y2=d;
}
void output(Point &p1)
{
double n;
n=sqrt((p1.x2-p1.x1)*(p1.x2-p1.x1)+(p1.y2-p1.y1)*(p1.y2-p1.y1));
cout<<setiosflags(ios::fixed)<<setprecision(2)<<"There are"<<" "<<n<<" "<<"meters between xiaohui and her phone."<<endl;
}
int main()
{
Point p1;
p1.input();
output(p1);
return 0;
}
09-04
09-04
09-04
09-04