摘要: 点击查看代码 #include <iostream> class Singleton { private: // 私有化构造函数,防止外部实例化 Singleton() { std::cout << "Singleton Instance Created!" << std::endl; } // 删 阅读全文
posted @ 2024-08-26 10:21 北宸于烁 阅读(40) 评论(0) 推荐(0)