![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
月亮地儿同学
生于八零;三岁,客居江南,山清水秀,童年如梦似幻;五岁,求学;八岁,重返故土,年少清贫,却长怀鸿鹄志向……
技术关键词:机器翻译|内存数据库|嵌入式数据库|模拟器
展开
-
有意思吗?关于for(;;)和while(1)。
早上翻看两年前做模拟器时的资料,在Marat Fayzullin的一篇How To Write a Computer Emulator文章中提及for(;;)和while(1)的差别——某些编译器会生成检测1是否为真的代码(some compilers will generate code checking whether 1 is true or not.)。 下午在网上又看到有人原创 2008-10-27 17:37:00 · 707 阅读 · 0 评论 -
C++ 中的Singleton 类的实现讨论
From: http://www.pconline.com.cn/pcedu/empolder/gj/c/0407/421424.htmlC++ 中的Singleton 类的实现讨论《设计模式》中把 Singleton 写成返回指针:class Singleton{public: static Singleton* Instance();protected:转载 2008-11-11 13:16:00 · 449 阅读 · 0 评论