- 博客(14)
- 资源 (30)
- 收藏
- 关注
原创 【Boost】boost::timer库用法与实例
// boost::timer库, 用于性能测试等需要计时的任务。 // boost::timer不适合高精度的时间测量任务。 它的精度依赖于操作系统或编译器,难以做到跨平台。 // boost::timer也不适合大跨度时间段的测量,可提供的最大跨度只有几百个小时,如果需要以天、月甚至年作为时间的单位则不能使用timer。 应该使用 date_time库。void test_timer()
2012-11-16 15:10:27 11820
原创 【Poco】Poco::NumberParser的例子
#include "../tmain.hpp"// Poco::NumberParser类提供静态方法将字符串转换成数字// parse: 将字符串转换int// parse64: 将字符串转换int64// parseFloat: 将字符串转换小数// parseHex: 将字符串转换16进制数 // ...void test_NumberParser(){ assert
2012-11-15 21:08:31 2708
原创 【Poco】Poco::NumberFormatter的例子
#include "../tmain.hpp"void test_NumberFormatter_Format(){ // 整数的格式化 assert (Poco::NumberFormatter::format(123) == "123"); assert (Poco::NumberFormatter::format(-123) == "-123"); assert (Poco::
2012-11-15 20:33:20 2037
原创 【Poco】Poco::Format的例子
#include "../tmain.hpp"/*Following are valid type specifications and their meaning:b boolean (true = 1, false = 0)c characterd signed decimal integeri signed decimal integero unsigned octal in
2012-11-13 16:01:34 5746
原创 【Poco】Poco::DynamicFactory的例子
#include "../tmain.hpp"namespace DF{ class Base { public: Base() { } virtual ~Base() { } }; class A: public Base { public: void print(){std::cout << "My name is A Class!" <<
2012-11-12 15:15:29 1566
原创 【Poco】Poco::DynamicAny中的例子
#include "../tmain.hpp"void test_DynamicAnyInt(){ Poco::Int32 src = 32; Poco::DynamicAny a1 = src; assert (a1.type() == typeid(Poco::Int32)); std::string s1; Poco::Int8 s2; Poco::Int16 s3;
2012-11-12 14:28:21 1828
原创 【Poco】Poco::Core中的例子
#include "../tmain.hpp"/* 操作系统#define POCO_OS_FREE_BSD 0x0001#define POCO_OS_AIX 0x0002#define POCO_OS_HPUX 0x0003#define POCO_OS_TRU64 0x0004#define POCO_OS_LIN
2012-11-11 19:15:52 1670
原创 【Poco】Poco::BypeOrder的例子
#include "../tmain.hpp"void test_ByteOrderFilp(){ { Poco::Int16 norm = (Poco::Int16) 0xAABB; Poco::Int16 filp = Poco::ByteOrder::flipBytes(norm); assert(Poco::UInt16(filp) == 0xBBAA); filp
2012-11-11 12:49:45 1351
转载 long long,_int64使用小结
前言: 在16位环境下,int/unsigned int 占16位,long/unsigned long占32位 在32位环境下,int占32位,unsigned int占16位,long/unsigned long占32位何时需要使用: long 和 int 范围是[-2^31,2^31),即-2147483648~2147483647,而unsigned范围是[0,2^3
2012-11-11 12:02:33 1405
转载 预定义宏 _MSC_VER
_MSC_VER分解如下: MS: Microsoft(微软)的简写 C: MSC就是Microsoft出的C编译器。 VER:Version(版本)的简写。 全部加在一起就是:Microsoft出的C编译器的版本 这是微软的预编译控制,在_MSC_VER较小时,它对一些东西的支持与新版不同。具体如下:defines the compiler ve
2012-11-11 11:02:12 1438 1
原创 【Poco】Poco::AutoReleasePool的例子
#include "../tmain.hpp"namespace{ class TestObj { public: TestObj(): _rc(1) { ++_count; } void duplicate() { ++_rc; } void release() { if (--_rc == 0) delete this;
2012-11-11 10:27:11 1018
原创 【Poco】Poco::AutoPtr的例子
#include "../tmain.hpp"class TestObj{public: TestObj(): _rc(1) { // PRINT_DEBUG("TestObj Construct" << " " << this); ++_count; } // AutoPtr的复制构造函数有调用duplicate函数 void duplicate() { // P
2012-11-11 10:17:10 2213
转载 Qt+VS编译器:默认库“library”与其他库的使用冲突;使用 /NODEFAULTLIB:library
找到qt安装目录下的mkspecs文件夹,在里面找到你使用的对应版本编译器,打开qmake.conf。稍等:/MD:动态链接多线程库(msvcrt.lib)。使用该选项时,需要用/NODEFAULTLIB选项来忽略掉libc.lib、 libcmt.lib、libcd.lib、libcmtd.lib、msvcrtd.lib库,否则会有链接错误;/MDd:动态链接多线程调试库(msvcr
2012-11-04 17:04:37 6257 1
原创 kindle的下载电子书的资源网站
http://www.coay.comhttp://www.shucang.comhttp://www.duokan.comhttp://www.91soushu.comhttp://www.shupeng.com
2012-11-03 19:28:04 7290
fixedsys字体下载
2012-10-01
zlib1.2.5的编译包
2012-07-08
FancyCache8.0中文破解版(含分区版配硬盘版)
2012-05-17
ActiveX Manager1.4破解版
2012-03-08
C++标准程序库 源代码
2012-02-24
NativeXml400
2011-09-13
NativeXml332
2011-09-13
svn在Linux下的安装文件
2011-03-07
Aptana Studio 1.2.7插件的破解补丁
2010-07-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人