有什么区别
const string& getName() const {return name;}
和
string& getName() const {return name;}
const在开始和结束时意味着什么?
c++
c++ ×1