当函数没有return时错误

error:control reaches end of non-void function

在对应函数+return   ;  即可

原文地址:https://www.cnblogs.com/Ph-one/p/4701004.html