可以使用去const的关键字const_cast<char*>()进行转换。
顺便了解了一下const_cast关键字,作用是在常数值(指针)和非常数值(指针)之间转换。
posted on 2014-04-08 11:10 泰达 阅读(312) 评论(0) 收藏 举报