已解决,没有返回值 参考链接: (47条消息) control reaches end of non-void function [-Wreturn-type] 实例分析_erfenjiao的博客-CSDN博客