转自https://wenku.baidu.com/view/cbef8856a8114431b80dd835.html 关于C语言实现参考http://blog.sina.com.cn/s/blog_46d528490100kuhg.html