06 2010 档案

test speed of shared memory
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//sharedMem.cpp:Definestheentrypointfortheconsoleapplication.//#include"stdafx.h"#include<windows...阅读全文

posted @ 2010-06-30 08:50 cutepig 阅读(53) | 评论 (0) 编辑

子集和问题
摘要: http://en.wikipedia.org/wiki/Subset_sum_problemhttp://groups.google.com/group/pongba/browse_thread/thread/84c480db88a326ac#阅读全文

posted @ 2010-06-24 21:31 cutepig 阅读(32) | 评论 (0) 编辑

lua的封装luawrapper-luabind-cpplua-tolua
摘要: CppLua,跨平台,用法简单,缺点是接口多,且不能向lua注册类。代码质量一般tolua,跨平台,说是automatically bindC/C++ code to Lua,感觉还是说手动比较恰当,接口繁多。luawrapper, 基于魔板,需要boost支持,功能强大,略有瑕疵(例如函数参数个数不能大于9,当然一般情况下,如果函数参数超过5个,恐怕嘿嘿嘿),代码质量上乘且 代码量最少(少得可怜...阅读全文

posted @ 2010-06-18 13:08 cutepig 阅读(516) | 评论 (2) 编辑

五大开源游戏引擎介绍
摘要: 五大开源游戏引擎介绍http://developer.51cto.com 2009-07-23 13:23 daoshang 译 JavaEye博客 我要评论(2) 本文总结分享了五个开源游戏引擎。对游戏编程初哥来说,选择一个好的游戏引擎是一个很头疼的事。本文介绍的五个游戏引擎不仅被证明是可靠的,而且全部开放源码。 对游戏编程初哥来说,选择一个好的游戏引擎是一个很头疼的事。市面上鱼目混杂,...阅读全文

posted @ 2010-06-16 23:33 cutepig 阅读(294) | 评论 (0) 编辑

一个简单的threadpool
摘要: Interface如下代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->structJob{void(*func)(void*);void*para;};classThreadPool:noncopyable{public:staticSetNumT...阅读全文

posted @ 2010-06-16 22:30 cutepig 阅读(94) | 评论 (0) 编辑

handless UI (direct UI)
摘要: http://www.viksoe.dk/code/windowless1.htmviksoe的代码很好,这个可以被运用到商业上。个人觉得这个框架比mfc甚至wtl的在构架、思想上高N倍。首先 viksoe采用layout机制动态计算各子窗口的坐标位置,自适应屏幕大小的变化。而MFC要求子窗口的坐标位置硬编码,结果要适应不同分辨率的屏幕 非常困难。GTK+在窗口布局时分为两个阶段,第一个阶段父窗口...阅读全文

posted @ 2010-06-14 13:09 cutepig 阅读(1942) | 评论 (0) 编辑

wxformbuilder+WxWidgets下载编译使用
摘要: 首先下载WxWidgetshttp://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.11.zip然后解压,打开里面一个INSTALL-MSW.txt, 里面告诉我们用vc打开wxWidgets-2.8.11\build\msw\wx.dsw 这个文件编译即可然后下载 wxformbuilder,选择windows installer (h...阅读全文

posted @ 2010-06-13 23:51 cutepig 阅读(610) | 评论 (0) 编辑

ptmalloc, dlmalloc
摘要: http://g.oswego.edu/dl/html/malloc.htmlhttp://www.cppblog.com/yangfan/articles/117132.htmlhttp://www.malloc.de/en/http://dev.firnow.com/course/6_system/linux/Linuxjs/2008618/126300.htmlhttp://www.goog...阅读全文

posted @ 2010-06-13 10:54 cutepig 阅读(112) | 评论 (0) 编辑

可视化界面工具
摘要: wxWidgets界面设计工具DialogBlocks http://www.cppblog.com/zyzx/archive/2009/03/12/76348.htmlgui builder open sourcehttp://wxformbuilder.org/http://sourceforge.net/projects/wxgladesharpdevelophttp://www.icsha...阅读全文

posted @ 2010-06-06 17:45 cutepig 阅读(113) | 评论 (0) 编辑

这几天弄一下
摘要: - jdk 1.6 + eclipse + cdt + mingw00- codeblocks + mingw 调试不大好用-driver studio-研究代码及基本实现原理UI frameworks :qt , gtkmm-poj上的题目阅读全文

posted @ 2010-06-04 00:21 cutepig 阅读(51) | 评论 (0) 编辑

poj 题目分类
摘要: http://blog.csdn.net/apachecq/archive/2009/01/16/3793747.aspx初期:一.基本算法: (1)枚举. (poj1753,poj2965) (2)贪心(poj1328,poj2109,poj2586) (3)递归和分治法. (4)递推. (5)构造法.(poj3295) (6)模拟法.(poj1068,poj2632,poj1573,poj29...阅读全文

posted @ 2010-06-01 08:55 cutepig 阅读(429) | 评论 (0) 编辑

JAVA内存模型
摘要: http://www.enet.com.cn/article/2008/0107/A20080107993998.shtmlhttp://www.javaeye.com/topic/108927http://www.99inf.net/softwaredev/java/53946.htm阅读全文

posted @ 2010-06-01 08:53 cutepig 阅读(44) | 评论 (0) 编辑