参考:
C书上肯定有类似的,仔细找找吧
https://blog.csdn.net/qq_39831234/article/details/120764771?spm=1001.2014.3001.5502