参考: http://blog.chinaunix.net/uid-25267728-id-3802135.html http://www.cppblog.com/tanky-woo/archive/2011/04/12/144020.html