If a book about C++ tells you that you cannot use private member variables from another class, just throw the book away. Real Programmers, when they are forced to use C++, start their programs with the following line, before including any header file, and they never have OOP headaches:

   #define private public

Never underestimate the power of C++.