C++
文章平均质量分 72
jinrongbo
这个作者很懒,什么都没留下…
展开
-
How I explained Design Patterns to my wife: Part 1
[from] CodeProject, By Al-Farooque Shubho | 9 Aug 2010IntroductionMe and my wife had some interesting conversations onObject Oriented Design principles. After publishing the conversation o转载 2011-11-27 11:32:36 · 519 阅读 · 0 评论 -
装修资料
电视背景墙+雕花板http://cd.qq.com/a/20101206/000233.htm#p=10浅蓝色 http://cd.qq.com/a/20101206/000233.htm#p=10转载 2011-12-21 13:23:13 · 255 阅读 · 0 评论 -
Performance tips
TIPSRemember the 80/20 rule80% of a program spends its time in 20% of the codePrefer x += y, to x = x + yUse pre-incrementation (++i), instead of post-incrementation (i++)This typi转载 2011-12-09 15:56:44 · 267 阅读 · 0 评论 -
Enforcing Correct Mutex Usage with Synchronized Values
原文来自Dr.Dobb's Enforcing Correct Mutex Usage with Synchronized ValuesBy Anthony Williams, May 26, 2010Post a CommentEnsuring that the correct mutex is locked when accessing data Anthony W转载 2011-12-05 22:39:52 · 496 阅读 · 0 评论 -
rvalue references and Move semantics
【转】http://stackoverflow.com/questions/3106110/can-someone-please-explain-move-semantics-to-me【another】 Move semantics and rvalue references in C++11http://www.cprogramming.com/c++11/rvalue-refe转载 2011-12-06 14:33:08 · 526 阅读 · 0 评论 -
有用的网址收集
DesignPattern: http://sourcemaking.com/design_patterns【C++】C++ Concurrency in Action http://ishare.iask.sina.com.cn/f/12014979.html?retcode=0原创 2011-12-01 12:52:27 · 258 阅读 · 0 评论 -
平衡二叉树
原文链接: http://www.cppblog.com/bellgrade/archive/2011/10/19/98402.html参考文章: http://en.wikipedia.org/wiki/AVL_tree平衡二叉树形态匀称的二叉树称为平衡二叉树 (Balanced binary tree) ,其严格定义是: 一棵空树是平衡二叉树;若 T转载 2011-11-30 22:02:09 · 491 阅读 · 0 评论 -
动态规划算法
原文链接: 动态规划算法 http://www.cppblog.com/Fox/archive/2008/05/07/Dynamic_programming.html以前在学习非数值算法的时候,曾经了解过动态规划算法(Dynamic programming),以下是对Wikipedia上动态规划的翻译,图也是Wikipedia上的,仓促行文,不到之处,请方家指正。转载 2011-12-03 20:55:57 · 779 阅读 · 0 评论 -
prototype of signal
Unix Network Programming, 5.8 POSIX Signal Handlingvoid (*signal (int signo, void (*func) (int))) (int);==>typedef void Sigfunc(int);Sigfunc *signal (int signo, Sigfunc *func);signa转载 2011-11-12 22:27:03 · 258 阅读 · 0 评论 -
使用GDB调试LINUX软件
转自 http://www.ibm.com/developerworks/cn/linux/sdk/gdb/Linux 的大部分特色源自于 shell 的 GNU 调试器,也称作 gdb。gdb 可以让您查看程序的内部结构、打印变量值、设置断点,以及单步调试源代码。它是功能极其强大的工具,适用于修复程序代码中的问题。在本文中,David Seager 将尝试说明 gdb 有多棒,多实用转载 2011-11-12 12:04:50 · 351 阅读 · 0 评论 -
install gcc 4.7 on openSUSE
ftp://gcc.gnu.org/pub/gcc/infrastructure/下载并依次安装gmp mpfr, mpc下载并安装gcc 4.7configure: error: cannot compute suffix of object files: cannot compileIndeed, adding the MPFR and GPM原创 2011-11-29 15:34:51 · 1562 阅读 · 0 评论 -
[C++0x] Boost Thread in Vector and use lamda as thread function
// =====================================================================================// Filename: main.cpp// // Description: thread learn from http://www.corensic.com/Learn/Resources/原创 2011-12-30 10:53:57 · 1377 阅读 · 0 评论