参考简书(C语言):https://www.jianshu.com/p/70952b51f0c8 参考博客(JAVA):https://blog.csdn.net/rr123rrr/article/details/77971771