
公共接口
morning_sir_jking
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
分割格式化字符串的方法
之前格式化字符串,都是用很low的方法sprintf, 最近学了boost库,就用boost来实现一下 #include #include #include #include bool GetArray(const std::string &str, const std::string splitStr, std::vector & v)原创 2016-12-19 17:47:36 · 833 阅读 · 0 评论 -
日期的偏移获取情况
//关于时间的偏移可以在这上面扩展 #include #include #include using namespace std; int GetDayNumOffset(const int offset_day) { time_t tnow; struct tm *tmnow = NULL; struct tm *tmDayoffset = NULL;原创 2016-11-29 17:46:40 · 1508 阅读 · 0 评论