C++ Friend Function Error: Use of Undeclared Identifier and Accessing Private Member
I’m currently working on a C++ program that involves two classes: Book and library. The Book class has several private member variables, and I’m trying to access these variables from the library class. To achieve this, I’m attempting to use a friend function. Here’s the code I’m working with: