摘要: const string getName() const;前边的const 说明返回的值不能被修改后边的const 说明该方法只能读取类中的变量,而不能修改类中的变量 阅读全文
posted @ 2014-01-15 22:50 逆游的鱼儿 阅读(859) 评论(0) 推荐(0) 编辑