This is because forward declaration in C++: Compiler needs to know function prototype when function call is compiled. So, you need declare the called function first or place the called function before the calling
function.
版权声明:本文博客原创文章,博客,未经同意,不得转载。