摘要: 1、指针和const⑴const常量指向一个非const变量int age=39;const int *pt=&age;该声明指出,pt指向一个const int,因此不能使用pt来修改这个值。换句话说*pt的值为const,不能被修改。*pt+=1; // invalid,因为*pt为co... 阅读全文
posted @ 2014-09-16 15:32 CTRA王大大 阅读(165) 评论(0) 推荐(0) 编辑