2013年4月27日
摘要: #include <iostream.h>#include <math.h>class Point{private:double x,y;public:void Setxy(double xx,double yy){x=xx;y=yy;}friend double Distance(Point a,Point b)//计算距离{double l;l=sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));return l;}friend void Comparation(Circle a,Point b);};class Circle 阅读全文
posted @ 2013-04-27 16:13 叛道者 阅读(151) 评论(0) 推荐(0)