把你的calss.h贴出来,帮你看看 #include "class.h"加一句#include 再试试
看似你想自己写一个string类,但是你要用为什么string的方法呢?重写一个strcpy()的方法吧