- 博客(2)
- 收藏
- 关注
原创 c++单例模式
1.基本实现class Singleton{public: static Singleton *Instance() { if (!spInstance) { spInstance = new Singleton; } return spInstance; }protected:
2016-10-06 20:28:28
296
原创 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
415
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人