上一页 1 ··· 5 6 7 8 9 10 下一页

2014年5月25日

c++ 日志操作

摘要: 程序需要一个简单的日志类,为此简单学习了Boost.Log和google的glog,前者功能非常强大,后者非常小巧但是不够灵活,最终打算自己写一个。 环境: win7 32位旗舰版、VS2010旗舰版 TinyLog.h文件 #ifndef _TINY_LOG_H_#define _TIN... 阅读全文

posted @ 2014-05-25 19:50 dchao 阅读(569) 评论(0) 推荐(0) 编辑

2014年5月20日

Tinyxml封装类COperatorXml

摘要: OperatorXml.h头文件 #ifndef _OPERATOR_XML_H_#define _OPERATOR_XML_H_#include class TiXmlDocument;class TiXmlElement;class TiXmlDeclaration;class COpera... 阅读全文

posted @ 2014-05-20 20:37 dchao 阅读(404) 评论(0) 推荐(0) 编辑

编译使用tinyxml

摘要: 环境: win7 32位旗舰版,VS2010,tinyxml_2_6_2版本 1、下载tinyxml,并解压到tinyxml文件夹下 2、生成动态链接库 原生的Tinyxml只支持静态库(没有在.h文件中找到任何的导出类或导出函数),并且生成的静态库比较大,Release下大约2.5M。 打... 阅读全文

posted @ 2014-05-20 16:59 dchao 阅读(1071) 评论(0) 推荐(0) 编辑

2014年5月11日

c++绘图软件<一>

摘要: 准备写一个绘图软件,参考了三层架构(表现层、业务逻辑层、数据访问层)。 //////////////////////////////////////////////////////////////////////////// 类说明:// 实体图元抽象基类,其派生类只存储数据和进行必要... 阅读全文

posted @ 2014-05-11 15:48 dchao 阅读(783) 评论(0) 推荐(0) 编辑

2014年5月10日

c++内存流

摘要: 1、MemoryStream.h文件内容ifndef _MEM_STREAM_H_#define _MEM_STREAM_H_#include class CMemoryStream{public: explicit CMemoryStream(std::size_t size) { m_pB... 阅读全文

posted @ 2014-05-10 13:56 dchao 阅读(1368) 评论(0) 推荐(0) 编辑

2014年4月20日

boost库之geometry<二>

摘要: #include #include #include #include #include #include #include #include #include #include #include namespace bg = boost::geometry;typedef bg::model:... 阅读全文

posted @ 2014-04-20 11:48 dchao 阅读(1932) 评论(0) 推荐(0) 编辑

2014年4月7日

boost库之geometry

摘要: 环境:win732位旗舰版、VS2010旗舰版、boost 1.55.0版本、坐标系为MM_TEXT Geometry是一个开源的几何计算库,包含了几何图形最基本的操作(也支持复杂的操作),下面我们看看怎么使用它。 #include #include #include #include #i... 阅读全文

posted @ 2014-04-07 22:40 dchao 阅读(2023) 评论(0) 推荐(0) 编辑

2014年4月1日

Drawcli分析

摘要: 当前环境:windows7 32位旗舰版、VS2010旗舰版 Drawcli介绍: Drawcli是VS2010中的一个示例程序,能够进行简单的绘图操作,例如线、矩形、圆角矩形、多边形等,位于VS安装目录"Microsoft Visual Studio 10.0\Samples\2052\V... 阅读全文

posted @ 2014-04-01 21:46 dchao 阅读(609) 评论(0) 推荐(0) 编辑

2014年3月25日

字符串编码问题(Ascii、Unicode、UCS-2、GBK、UTF-8)

摘要: 1.字符编码的发展 第一阶段:ASCII阶段,(American Standard Code for Information Interchange, “美国信息交换标准码),计算机当时只支持英语,字符在计算机中都是以0和1的方式存储的。象a、b、c、d这样的52个字母(包括大写)、以及0、1、... 阅读全文

posted @ 2014-03-25 23:01 dchao 阅读(2662) 评论(0) 推荐(0) 编辑

2014年3月21日

c++模板两个数的加法

摘要: 1、最简单的情况: templateT Add(const T& a, const T& b){ return a + b;} 缺点是不能够处理不同类型的数据,例如Add(100, 100.0f); 2、第二种情况: templateT1 Add1(T1 lhs, T2 rhs){ return... 阅读全文

posted @ 2014-03-21 20:07 dchao 阅读(2010) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 下一页

导航