;这个函数了吗另外,检查一下函数名是否拼写有错误
如下:
class person { public: void print(); //在类中声明这个函数 }
那你确认一下Person的头文件中声明了这个print函数吗?