柴郡猫技术--C++中的PIMPL设计模式 另一个 Blog 地址:http://insaneguy.me 原文链接:http://insaneguy.me/2015/04/05/cheshire_cat_in_cpp-pimpl_idiom/C++ 中的“柴郡猫技术”(Cheshire Cat Idiom),又称为 PIMPL(Pointer to IMPLementation) ,Opaque Pointer 等,是一种在类中只定义接口
C++ 中的 Lambda 表达式 lambda 表达式是函数式编程语言中一个很 cool 的特性,而 C++11 标准加入了对 lambda 表达式的支持。本篇文章对 C++11 中的 lambda 表达式做一个简单的介绍。什么是 lambda 表达式说到 lambda expression 就不能不提 lambda calculus,前者是从后者中衍生出的概念,lambda calculus 有着严格的数学定义,
旋转矩阵与四元数 旋转矩阵与四元数另一个 Blog 地址:http://insaneguy.me 原文链接:http://insaneguy.me/2015/03/25/rotation_matrix_and_quaternions/在计算机图形学的学习中,几何变换(Transformations)是一块重要的内容,我们使用齐次坐标(Homogeneous coordinates)描述点和向量,使用变换矩阵描述平移
Notepad++ 自定义缩进 http://zhidao.baidu.com/question/136092310.html设置首选项—其他—勾选自动缩进设置首选项—语音—标签设置下,使用空格代替若2没有该选项,则在—选项卡设置里。
UVa OJ 160 Factors and Factorials Factors and Factorials The factorial of a number N (written N!) is defined as the product of all the integers from 1 to N. It is often defined recursively as follows:Factor
UVa OJ 642 Word Amalgamation Word Amalgamation In millions of newspapers across the United States there is a word game called Jumble. The object of this game is to solve a riddle, but in order to find the letters th
AOAPC_I 高精度运算类 bign #include #include #include using namespace std;const int MAXN = 200;struct bign{ int len, s[MAXN]; bign() { memset(s, 0, sizeof(s)); len = 1; } bign(int num
UVa OJ 10082 准备系统练习下算法,感觉刘汝佳的《算法竞赛入门经典》(Art of Algorithms and Programming Contests I,简称AOAPC_1)很不错。前四章讲语言的略过,从算法篇看起。今天开始一边看一边做题,先从简单题做起吧~一开始的例题和习题都是UVa OJ上的,进去后点左侧,根据题号就能搜到题目了~UVa OJ 10082 Problem C: W
STL中map的使用 map m;string a = "hello";// 如果m[a]没赋值,那么m[a]=0;map m;// 如果m[a]没赋值,那么m[a]="";(转载)STL中map用法详解http://www.kuqin.com/cpluspluslib/20071231/3265.html map是STL的一个关联容器,它提供一对一(其中第一个可以称为关键字,每个关键
PAT (Advanced Level) Practise 1032. Sharing (25) http://pat.zju.edu.cn/contests/pat-a-practise/10321032. Sharing (25)时间限制100 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, Yue
PAT (Advanced Level) Practise 1031. Hello World for U (20) http://pat.zju.edu.cn/contests/pat-a-practise/10311031. Hello World for U (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者
PAT (Advanced Level) Practise —— 1015. Reversible Primes (20) http://pat.zju.edu.cn/contests/pat-a-practise/10151015. Reversible Primes (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHE