运行成功了不过有个warning
index.cpp: In member function 'Coordinate& Coordinate::operator--(int)': index.cpp:28:20: warning: reference to local variable 'old' returned [-Wreturn-local-addr] Coordinate old(*this); ^~~
index.cpp: In member function 'Coordinate& Coordinate::operator--(int)': index.cpp:28:20: warning: reference to local variable 'old' returned [-Wreturn-local-addr] Coordinate old(*this); ^~~
2018-07-27
举报