2012年11月27日
摘要: **********************************************************常量与指针:const int* p; //p可变,p指向的内容不可变int const* p; //p可变,p指向的内容不可变int* const p; //p不可变,p指向的内容可变const int* const p; //p和p指向的内容都不可变当const出现在*号左边时指针指向的数据为常量当const出现在*后右边时指针本身为常量*************************************************... 阅读全文
posted @ 2012-11-27 15:33 Daniel.G 阅读(948) 评论(0) 推荐(0) 编辑