哪里错了这是
hero没有重载<<需要用下面方式输出
cout << array[i].name << "\t" << array[i].age << "\t" << array[i].sex << endl;