摘要: char greeting[] = "Hello";char* p = greeting; //non-const pointer, non-const dataconst char* p = greeting; //non-const pointer, const datachar* const p = greeting; //const pointer, non-const dataconst char* const p = greeting; //const pointer, const data//const 虽然... 阅读全文
posted @ 2012-04-30 20:39 waynewuzhenbo 阅读(165) 评论(0) 推荐(0) 编辑
摘要: char greeting[] = "Hello";char* p = greeting; //non-const pointer, non-const dataconst char* p = greeting; //non-const pointer, const datachar* const p = greeting; //const pointer, non-const dataconst char* const p = greeting; //const pointer, const data//const 虽然... 阅读全文
posted @ 2012-04-30 17:15 waynewuzhenbo 阅读(265) 评论(0) 推荐(0) 编辑