void Table::Copy(Table & copy) const { int * i_copy = new int[size+1]; int * j_copy = new int[I[size]]; memcpy(i_copy, I, sizeof(int)*(size+1) ); memcpy(j_copy, J, sizeof(int)*size); copy.SetIJ(i_copy, j_copy, size); }