摘要: C++进阶学习 头文件的防卫式声明 #ifndef MYCLASS #define MYCLASS Header file content #endif 成员函数的保护 如果输入参数采用“值传递”,由于函数将自动产生临时变量用于复制该参数,该输入参数本来就无需保护,所以不要加 const 修饰。例如 阅读全文
posted @ 2024-04-11 14:39 XodeChou 阅读(31) 评论(0) 推荐(0)