摘要: 非模板友元templateclass HasFriend{public: friend void report(HasFriend&);};// the following code is necessaryvoid report(HasFriend& hf){ //details}voi... 阅读全文
posted @ 2015-11-24 20:35 男子大学生的日常 阅读(190) 评论(0) 推荐(0) 编辑
摘要: const int* p=nullptr; //p 是一个指向整形常量的普通指针,不能修改该整形常量int* const p=nullptr; //p是一个常量指针,不能修改p的指向const int* q=nullptr; //同2 阅读全文
posted @ 2015-11-24 20:29 男子大学生的日常 阅读(153) 评论(0) 推荐(0) 编辑