//1、编写程序,提示用户输入两个点(x1,y1)和(x2,y2),计算两点之间的距离并输出。
//注:求平方根的库函数为sqrt(),要包含标准库<cmath>,求平方的函数pow(a,x)-即a的x方。
#include<iostream>
#include<cstring>
#include<cmath>
using namespace std;
int main(){
int a,b,c,d;
cout<<"输入A的坐标(a,b)";
cin>>a>>b;
cout<<"输入B的坐标(C,D)";
cin>>c>>d;
cout<<sqrt((pow(a-c,2)+pow(b-d,2)))<<endl;
}