We would need to see the definition of bookList, the definition of whatever type it is an array of, and, most importantly, the definition of getName().
There must be an overload for ostream& operator>>(ostream&, T) where T is the type that getName returns for that to work. Maybe you can read into a temporary string and use a setName function to update the string.