c++
dongyutq
是的,努力是不甘心就这样一辈子。
展开
-
c++ 判断字符串是否为数字
#include "stdafx.h"#include Regex>#include #include int _tmain(int argc, _TCHAR* argv[]){ std::string str ("123441115111111"); std::regex rx("[0-9]+"); bool bl = std::regex_match(str原创 2014-05-22 22:12:58 · 8195 阅读 · 0 评论 -
C++中单例模式
最简单的单例实现只需要一个全局对象:some_class the_instance;some_class *get_instance() { return &the_instance;}原创 2014-07-03 17:10:33 · 648 阅读 · 0 评论