摘要: 在4.11.3节(第145页)中我们说过,const_cast 在重载函数的情景中最有用。举个例子,回忆6.3.2节(第201页)的shorterstring 函数: //比较两个string对象的长度,返回较短的那个引用 const string &shorterString(const stri 阅读全文
posted @ 2024-09-29 15:51 double64 阅读(13) 评论(0) 推荐(0)