ok so I class telling a point to rotate 90 degrees till it reaching the original point.... I'm not using Visual Studio when it compiles just looks like crap..
#include <iostream>
#include "point.h"
using namespace std;
void rotate(point &p);
int Main()
{
a.point(0,0);
cout << "(" << a.get_x() << ", " << a.get_y() << ")\n";
a.shift(2, -1);
cout << "(" << a.get_x() << ", " << a.get_y() << ")\n";
}
int coutRotation(point p)
{
int rotations;
rotations = 0;
while ((a.get_x() 0 || (p.get_y() < 0))
{
a.rotate90();
++rotations;
}
return rotations
}
void rotate(point &p)
{
while ((a.get_x() < 0 || (p.get_y < 0))
{
a.rotate90:
}
cout << '(: << a.get_x() << ", " << a.get_y() << ")/n
}