Pokemon operator-(Pokemon& p1, Pokemon& p2) { Pokemon pkmn; pkmn.SetExp(p1.GetExp() - p2.GetExp()); return pkmn; }//全局-运算符重载 要和该函数写在1个CPP文件里