摘要:
这个文章里比较全了,转过来方便一下。 http://www.functionx.com/cpp/keywords/typedef.htm 真TM全,中文的有人写么? An Alias for a Known Type In C++, you can declare a variable using one of the built-in data types:In the same way, y... 阅读全文
摘要:
enum是一个好东西。 In C and C++, enum types can be used to set up collections of named integer constants. (The keyword enum is short for ``enumerated''.) syntax:The enum keyword is used to create an enumerat... 阅读全文
摘要:
今天看实验室一个项目的源码,其中设计模式随处可见。。 这是一个Mesh类,其中有一个friend class : MeshDelegate, 显然是一个delegate模式了。 参考Wiki上的条目: 一个简单的用法:instead of performing one of its stated tasks, delegates that task to an associated helper ... 阅读全文
摘要:
Qt中设计模式随处可见。 QFSFileEngine is the default file engine for accessing regular files. It is provided for convenience; by subclassing this class, you can alter its behavior slightly, without having to wri... 阅读全文
摘要:
# -*- coding:utf-8 -*-""" Copyright Left (c) justin.seeley.cn@gmail.com Any usage of this code sniplet is not allowed without author 's permission"""import cv def single_channel_hist( channel ): """ c... 阅读全文
摘要:
Trouble spliting RGB image into its 3 channels with cvSplitHi Doug,Maybe you have already sorted this out. I just ran into the same problem and Iwas just going to add to this when I figured out the so... 阅读全文