摘要: build a lib with command line : g++ -fPIC -shared test1.cpp -o libtt.so to build an executable with command line: g++ test-main.cpp -L./ -ltt Notice: 阅读全文
posted @ 2017-03-12 11:11 HEIS老妖 阅读(162) 评论(1) 推荐(0) 编辑
摘要: it's a syntatical sugar: equal to: so the return type of function1 must be a callable: Aspect-oriented programing 阅读全文
posted @ 2017-03-10 16:50 HEIS老妖 阅读(92) 评论(0) 推荐(0) 编辑
摘要: pointer: address, use operator(*) to get/set the value 1) support operator(+,-), move to next positon accroding to the element type it points to 2) on 阅读全文
posted @ 2017-03-09 15:19 HEIS老妖 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Unicode, Code Point is the value of evry character in Unicode table(int,long,ll) Unicode defines a codespace of 1,114,112 code points in the range 0he 阅读全文
posted @ 2017-02-27 14:09 HEIS老妖 阅读(166) 评论(3) 推荐(0) 编辑
摘要: if not, it will lead to an endless loop!!! 1 # include<iostream> 2 using namespace std; 3 class A 4 { 5 public: 6 int var; 7 8 A():var(0){} 9 10 A(A & 阅读全文
posted @ 2017-02-27 12:32 HEIS老妖 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Python/C API Reference Manual¶ https://docs.python.org/3/c-api/index.html Extending and Embedding the Python Interpreter¶ https://docs.python.org/3/ex 阅读全文
posted @ 2017-02-21 12:52 HEIS老妖 阅读(418) 评论(0) 推荐(0) 编辑
摘要: import module; help(module.function) import module; help(module.class) 阅读全文
posted @ 2017-02-19 23:33 HEIS老妖 阅读(110) 评论(0) 推荐(0) 编辑
摘要: git remote: show all remote repositories git push -u <X1> <>: set x1 as the default reposi, we can just use git push next time git remote add <> and t 阅读全文
posted @ 2017-02-18 16:12 HEIS老妖 阅读(374) 评论(5) 推荐(0) 编辑
摘要: http://eli.thegreenplace.net/2012/01/30/the-bytesstr-dichotomy-in-python-3/ 阅读全文
posted @ 2017-02-17 14:24 HEIS老妖 阅读(107) 评论(0) 推荐(0) 编辑