outside of class is not definition

有一种可能的情况:You have semicolons (;) at the end of all your function definitions making the compiler think they're declarations.
 即在方法定义的后面都误添加上了";",导致编译器认为这仅仅是个声明。

你可能感兴趣的:(C++,编程)