2016年2月21日

摘要: #include "stdio.h" #include "stdlib.h" #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <dirent.h> bool copyFile(const std::st 阅读全文
posted @ 2016-02-21 21:34 HemJohn 阅读(408) 评论(0) 推荐(0) 编辑
摘要: linux、unix平台 #include "stdio.h" #include "stdlib.h" #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <dirent.h> void createPat 阅读全文
posted @ 2016-02-21 21:30 HemJohn 阅读(762) 评论(0) 推荐(0) 编辑
摘要: void split(const string& str, vector<string>& ret_, string sep)--传入要分割的字符串str,要存储分割字符串的ret,分割的字符串str { if (str.empty()) { return; } string tmp; string 阅读全文
posted @ 2016-02-21 21:28 HemJohn 阅读(189) 评论(0) 推荐(0) 编辑

导航