- 博客(9)
- 资源 (6)
- 收藏
- 关注
原创 Boost学习笔记(四)---利用boost::property_tree;读写xml文件,保存文件
定义xml文件如下所示:96小青峰jd http://www.urll.comhttp://www.ur22.comhttp://www.ur33.com24#include #include #include #include using namespace std;using namespace boost;int main(i
2014-02-26 21:19:08 1970
转载 stl(五)------生成 A-Z, AA - ZZ , AAA, -- ZZZ AAAA -- AAAZ 等序列的字符
The Z -> AA, ZZ -> AAA, ZZZ -> AAAA transitions had me stuck for a while (which seems to be a problem in the good Doctor's perl program), but the following C++ code seems to work.It uses the fai
2014-02-26 19:26:52 5262
原创 Boost学习笔记(三)------boost::bimap的使用
#include #include #include #include using namespace std;using namespace boost;int main(int argc, _TCHAR* argv[]){ bimapbm;bm.left.insert(std::make_pair(1,"sty1")); //向左视图添加数据b
2014-02-25 20:51:47 1956
原创 Boost学习笔记(二)------boost::array数组的使用
#include #include using namespace std;using namespace boost;int main(int argc, _TCHAR* argv[]){ /*boost::array 和普通标准数组一样,但是不具备std::vector 的动态变动数组容量的功能,使用的时候要注意*/boost::array ar
2014-02-20 17:16:23 5893
转载 Boost学习笔记(五)---宏介绍BOOST_TYPEOF和BOOST_AUTO
头文件里定义了两个宏:BOOST_TYPEOF和BOOST_AUTO,分别用于仿真C++新标准的typeof和auto关键字,可以在编译期自动推导表达式的类型。它们不仅能够推导C++语言内建的int、double、数组、函数指针等等类型,也支持标准库中的容器类型,使程序员再也不需要写复杂的类型定义就能够轻松声明变量。这两个宏完全模仿了typeof和auto关键字的用法,除了因为宏的
2014-02-20 16:54:49 1665
原创 如何设置已经创建的ComBoBox为CBS_DROPDOWNLIST样式
CFont *pfont = GetFont();RECT windowExtents;m_comBox.GetWindowRect(&windowExtents);ScreenToClient(&windowExtents); //防止ComBoBox错位m_comBox.DestroyWindow();m_comBox.Create(WS_EX_NOPARENTNOTI
2014-02-20 15:19:33 2758
原创 Boost学习笔记(一)----scoped_ptr智能指针的使用
#include #include #include using namespace std;using namespace boost;int main(int argc, _TCHAR* argv[]){ /*scoped_ptr 指针会调用该类析构函数负责内存的释放*/scoped_ptrpTest(new std::string("h
2014-02-19 19:36:13 901
原创 收藏一些比较好用的C++学习网站,方便日常使用。比较给力
http://www.cplusplus.com/ 这个网站包括标准C++的一些使用例子,很实用http://xerces.apache.org/xerces-c/ 读写Xml文件的一个网址http://www.firstobject.com/ 读写Xml文件的一个网址http://www.codeproject.com/ 这个网站可以下载很多源码,而且免费哦!!!...
2014-02-19 14:57:43 2356
转载 stl(四)------如何对map进行赋值std::map::operator=
// assignment operator with maps#include #include int main (){ std::mapchar,int> first; std::mapchar,int> second; first['x']=8; first['y']=16; first['z']=32; second=first;
2014-02-19 14:43:01 12813
AcEdInputPointMonitor CAD鼠标提示信息反应器
2014-07-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人