int ci = 123;
const int *ip2 = &ci;
ci = 345; // 没问题
*ip2 = 788; // 错误

Posted on 2011-11-28 22:20  SomethingReview  阅读(149)  评论(0编辑  收藏  举报