也是醉了,不懂为什么最后的角度就是所有角度之和,但是题目这么说了,我也就这么做了好了。。。
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <algorithm>
using namespace std;
const int maxn = 15;
const double pi = acos(-1.0);
typedef struct Point
{
double x, y, p;
Point(double _x = 0, double _y = 0, double _p = 0):
x(_x), y(_y), p(_p) {}
Point operator +(Point argu)
{
return Point(x + argu.x, y + argu.y);
}
......
阅读全文