摘要: 题意:给出一个圆和一个矩形,判断2图形是否相交,(相切也算)。注意思考的要全面代码:View Code 1 #include <cstdio> 2 #include <cmath> 3 #include <iostream> 4 using namespace std; 5 struct st 6 { 7 double x,y; 8 }; 9 double r;10 double dis(st A,st B)11 {12 return sqrt((A.x - B.x) * (A.x - B.x) + (A.y - B.y) * ( A.y - B.y));1 阅读全文
posted @ 2013-03-20 09:28 fly_lovelove 阅读(293) 评论(0) 推荐(0) 编辑