a function-definition is not allowed here before ‘{’ token

出现错误:a function-definition is not allowed here before ‘{’ token
解释:不能在一个函数中定义另一个函数
错误原因:main函数 } 误删导致的

你可能感兴趣的:(#,QT,C++深度剖析)