摘要:
非模板友元templateclass HasFriend{public: friend void report(HasFriend&);};// the following code is necessaryvoid report(HasFriend& hf){ //details}voi... 阅读全文
摘要:
const int* p=nullptr; //p 是一个指向整形常量的普通指针,不能修改该整形常量int* const p=nullptr; //p是一个常量指针,不能修改p的指向const int* q=nullptr; //同2 阅读全文