随笔 - 404
文章 - 0
评论 - 1037
阅读 -
136万
07 2011 档案
c++ boost判断一个字符串中是否含有汉字的代码
摘要:for(set<string>::iteratorit=institutionnames.begin();it!=institutionnames.end();it++){wstringwtemp=strp.String2Wstring(*it);boost::wregexwreg(L"[\u4e00-\u9fa5]");boost::wsmatchm;wstring::const_iteratormybegin=wtemp.begin();wstring::const_iteratormyend=wtemp.end();if(wtemp.size()>3
阅读全文
zz SQL Server2005以windows 身份验证模式安装后,如何改为混合模式以及sa密码设定
摘要:.使用Management Studio Express,用“Windows身份验证”登录,选中SQL服务器名,右击鼠标选择属性,在服务器属性选项页面,选择“安全性”,将服务器身份验证由“Windows身份验证”改为“SQL Server和Windows身份验证”,单击确定。 2.使用SQL Server 2005外围应用配置器,选择“服务和连接的外围应用配置器”,选SQL Express-->Database Engine-->服务,先停止,再启动,重启SQL Server服务器。 3.再回到Management Studio Express,选择“安全性”-->登录名--
阅读全文
知识点备份:C++谓词函数设计的注意事项
摘要:要满足strict weak ordering 理论。strict weak ordering 理论是建立在 strict partial ordering 理论之上的。irrefective, antisymmetric,transitive(partial order 的要求)transitive of equivalence。参考http://www.sgi.com/tech/stl/StrictWeakOrdering.htmlhttp://en.wikipedia.org/wiki/Strict_weak_order
阅读全文