vector.cc
changeset 45 7197576fedcf
parent 43 cf8c1b5127b2
child 54 c064ce9f40f5
--- a/vector.cc
+++ b/vector.cc
@@ -20,11 +20,11 @@
         Vector (int xx = 0, int yy = 0);
        ~Vector ();
 
-        int X () { return x; }
-        int Y () { return y; }
+        int X () { return x; };
+        int Y () { return y; };
 
-        Vector operator+ (Vector&);
-        Vector operator- (Vector&);
+        Vector operator+ (Vector &);
+        Vector operator- (Vector &);
 
         void vector ();
         double abs ();
@@ -39,11 +39,11 @@
         fprintf (stderr, "Removing Vector (%.3d, %.3d)\n", x, y);
     }
 
-    Vector Vector::operator+ (Vector& v) {
+    Vector Vector::operator+ (Vector & v) {
         return Vector (x + v.X (), y + v.Y ());
     }
 
-    Vector Vector::operator- (Vector& v) {
+    Vector Vector::operator- (Vector & v) {
         return Vector (x - v.X (), y - v.Y ());
     }