C++ program to display information on books