c/c++
BradyWong
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c语言中的变长函数
#include <stdio.h>#include <stdarg.h>double sum_of_double(int count, ...){ double sum = 0; va_list ap; va_start(ap, count); int i = 0; for (i = 0; i != count; i++) { s原创 2016-09-11 18:04:31 · 501 阅读 · 0 评论 -
c++单例模式
1.基本实现class Singleton{public: static Singleton *Instance() { if (!spInstance) { spInstance = new Singleton; } return spInstance; }protected:原创 2016-10-06 20:28:28 · 367 阅读 · 0 评论
分享