- 博客(18)
- 资源 (25)
- 收藏
- 关注
转载 10 Python pitfalls - Python idioms, 4 of n
(or however many I'll find ;-)These are not necessarily warts or flaws; rather, they are (side effects of) language features that often trip up newbies, and sometimes experienced programmers. Incomp
2013-11-30 10:49:13 1260
原创 VIM IDE for C++
1) Build and install the latest VIM from source.Refer to https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source2) Install vundle (Vim Bundle) for VIMhttps://github.com/gmarik/
2013-11-29 18:03:36 2243
转载 Code Like a Pythonista: Idiomatic Python - Python idioms, 3 of n
Code Like a Pythonista: Idiomatic PythonContentsThe Zen of Python (1)The Zen of Python (2)Coding Style: Readability CountsPEP 8: Style Guide for Python CodeWhitespace 1Whitespace 2NamingLo
2013-11-28 14:54:01 1498
原创 Move semantics/theory - C++11, 26 of n
std:move() unconditionally converts an lvalue or rvalue to an rvalue.std:forward() forwards the argument passed in exactly the same type as it is. May be lvalue or rvalue (perfect forwarding).When ove
2013-11-18 23:57:10 895
原创 Guidelines - C++11, 25 of n
Use unique_ptr, shared_ptr, vector, string to manage resourcesReturn locals by value. Don't return by const valueExamples:const string foo() { return "foo"; } // deprecated since C++11 because i
2013-11-18 15:11:55 931
原创 Pay close attention to manage multiple resource in one object - C++11, 24 of n
if constructor (at any point, say in the body of constructor) throws, the object's desctructor will NEVER be invoked, because the compiler can't tell what's the state of the object under construction
2013-11-18 14:25:57 1014
原创 Inheritance is the base class of evil (Sean Parent)
#include #include #include #include #include using namespace std;templatevoid draw(const T& x, ostream& out, size_t pos) { out }class object_t {public: template
2013-11-18 11:42:51 1181
原创 Inheriting constructors - C++11, 23 of n
Inheriting constructorsusing-declaration that names a constructor implicitly declaresa set of inheriting constructors. The candidate set of inherited constructors from the class X named in the
2013-11-17 14:51:49 1196
原创 Special member functions (copy/move assignment) - C++11, 22 of n
copy/move assignmentA user-declared copy assignment operator X::operator= is anon-static non-template member function of class X withexactly one parameter of typeX, X&, const X&, volatile
2013-11-17 12:12:22 1333
原创 Special member functions (copy/move constructor) - C++11, 21 of n
Copying and MovingDuring object construction (constructor), be very careful the objects referenced have been fully initialized.In constructor/destructor, pay close attention to calling "virtual
2013-11-16 23:39:40 1749
原创 Initialization - C++11, 20 of n
InitializationIf a given non-static data member has both a brace-or-equal-initializer and a mem-initializer, the initialization specified by the mem-initializer is performed, and the non-static
2013-11-16 21:33:22 962
原创 Special member functions (destructor) - C++11, 19 of n
A destructor is used to destroy objects of its class type. The address of a destructor shall not be taken. A destructor can be invoked for a const, volatile or const volatile object.const and vola
2013-11-16 17:57:38 973
原创 Conversion - C++11, 18 of n
1) Conversion Constructorstruct X { X(int); X(const char*, int =0); X(int, int);};void f(X arg) { X a = 1; // a) X b = "Jessie"; // b) a = 2; // a = X(2)
2013-11-16 15:10:43 1005
原创 Temporaries - C++11, 17 of n
1) struct S {S();S(int);friend S operator+(const S&, const S&);~S();};const S& cr = S(16)+S(23);The temporary result of "S(16) + S(23)" bound to "cr" persists until the end life of "cr
2013-11-14 22:28:21 867
原创 find out gcc/clang head file search paths
ghost@ubuntu:~/work/test$ gcc-4.8 -v -x c++ /dev/null -fsyntax-onlyUsing built-in specs.COLLECT_GCC=gcc-4.8COLLECT_LTO_WRAPPER=/usr/gcc48/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
2013-11-14 19:05:57 2125
原创 Special member functions (constructor) - C++11, 16 of n
Special member functions:default constructorcopy constructorcopy assignment operatorMove constructorMove assignment operatorConstructorsA constructor can be invoked for a const, volatile o
2013-11-14 16:35:26 1216
原创 Compile gcc4.8 on Ubuntu 12.04 LTS X64
1) Download gcc-4.8 source code from one of the server in http://gcc.gnu.org/mirrors.html. say:wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-4.8.2/gcc-4.8.2.tar.bz2.tar.bz22)
2013-11-09 21:06:19 1713
MPEG-4 ISO 标准 ISO/IEC14496-3 part3
2009-02-26
MPEG-4 ISO 标准 ISO/IEC14496-3 part2
2009-02-26
MPEG-4 ISO 标准 ISO/IEC14496-3 part1
2009-02-26
MPEG-4 ISO 标准 ISO/IEC14496-1 2004 third edition
2009-02-26
the c++ Standard library C++标准程序库—自修教程与参考手册.part4.rar(中文版)
2007-10-12
the c++ Standard library C++标准程序库—自修教程与参考手册.part3.rar(中文版)
2007-10-11
the c++ Standard library C++标准程序库—自修教程与参考手册.part2.rar(中文版)
2007-10-11
the c++ Standard library C++标准程序库—自修教程与参考手册.part1.rar(中文版)
2007-10-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人