摘要: /*****class Base*****/ class Base { public: Base(); virtual ~Base(); protected: struct Impl; Impl* m_Impl; }; struct Base::Impl { int num{ 100 }; }; B 阅读全文
posted @ 2024-09-13 21:45 double64 阅读(30) 评论(0) 推荐(0)
摘要: 默认状态下,const 对象仅在文件内有效。 const int bufSize=512;//输入缓冲区大小 编译器将在编译过程中把用到该变量的地方都替换成对应的值。也就是说,编译器会找到代码中所有用到 bufsize 的地方,然后用 512 替换。 某些时候有这样一种 const 变量,它的初始值 阅读全文
posted @ 2024-09-13 13:28 double64 阅读(32) 评论(0) 推荐(0)