//This is the class declaration
class book_one
{
//Add in characteristics
int pagenumber=400;
//You can add functions too
void openbook();
//This is where you would define the function
}book_one; //After a class you should probably name it as an object. Here I named this "book_one."
//You need the semicolon at the end.
You would do this for both of the books, as well as any class you would make. Then you would incorporate this into the rest of your program.
Well, I wouldn't call it a library. That is correct syntax, and this creates two objects, named book1 and book2. One thing I forgot though, is the word "public:." What this does is, it allows any other part of the program to access and modify the code under "public (you need a colon after public.)" I coded up a quick program for you.