/* 烟台大学计算机学院学生 *All rights reserved. *文件名称: *作者:zhaojiaxiang *完成日期:2013年3月8日 *版本号:v1.0 *我的程序: */ #include#include using namespace std; enum SymmetricStyle {axisx,axisy,point};//分别表示按x轴, y轴, 原点对称 struct Point { double x; // 横坐标 double y; // 纵坐标 }; double distance(Point p1, Point p2); // 两点之间的距离 double distance0(Point p1); Point symmetricAxis(Point p,SymmetricStyle style); //返回对称点 int main( ) { Point p1= {1,5},p2= {4,1},p; cout<<"两点的距离为:"<
感悟:在做题之前先看了看同学的原型 并借鉴了一周的项目一
