求两坐标点距离?#include #include using namespace std;struct point{int x;int y;int z;};int main(){struct point p1,p2;float d;cout<<"输入两个坐标点:";cin>>p1.x>>p1.y>>p1.z;cin>>p2.x>>p2.y>>p2.z;cout<<"两个点的坐标分别是:"<cout<<"("<cout<<"("<d = sqrt((p1.x-p2.x)*(p1.x-p2.x)+(p1.y-p2.y)*(p1.y-p2.y)+(p1.z-p2.z)*(p1.z-p2.z));cout<<"两点之间的距离:"<return 0;}