for循环有意义吗?不用for循环也可以分配不同的地址啊?
coordinate::coordinate(const coordinate &coor)//:setx(m_ix){coor.setx(m_ix)},
//sety(m_iy){coor.setx(m_iy)}
{
m_ix=coor.m_ix;
m_iy=coor.m_iy;
//m_pcoor=coor.m_pcoor;
m_pcoor =new int [m_ix*m_iy];
//for (int i =0 ;i<m_iy*m_ix;i++)
//{
// m_pcoor[i]=coor.m_pcoor[i];
// //cout<<m_pcoor[i]<<endl;
//}
cout<<"const coordinate &coor"<<endl;
}