::的类名前有个 & ,什么意思?
MazePerson &MazePerson::setPersonPosition(int coordinateX,int coordinateY) { positionX = coordinateX; positionY = coordinateY; return *this; }
MazePerson &MazePerson::setPersonPosition(int coordinateX,int coordinateY) { positionX = coordinateX; positionY = coordinateY; return *this; }
2015-08-23
举报