changeset 54 | c064ce9f40f5 |
parent 45 | 7197576fedcf |
child 65 | 76514757b0d6 |
--- a/pmc/vector.cc +++ b/pmc/vector.cc @@ -17,11 +17,22 @@ y = yy; mode = RAD; + refCounter++; + #ifdef DEBUG fprintf (stderr, "New Vector: (%.3d, %.3d)\n", x, y); #endif } +Vector::Vector (const Vector & copy) +:x (copy.x), y (copy.y) +{ + fprintf (stderr, "Warning: Copy Constructor: "); + vector (); + fprintf (stderr, "\n"); + refCounter++; +} + Vector::~Vector () { #ifdef DEBUG