摘要: 正确void change(test &target){ target.name = "aaa";} 错误void change(const test &target){ target.name = "aaa";}添加const关键字之后内容不能修改,这与指针不同 阅读全文
posted @ 2014-11-25 20:47 Azurewing 阅读(231) 评论(0) 推荐(0) 编辑