Can't seem to get this to work and can't find any examples in my book with a return type ptr.
Code:map<string,Book> *get_ptrLibrary() const{return *ptrLibrary;};
Can't seem to get this to work and can't find any examples in my book with a return type ptr.
Code:map<string,Book> *get_ptrLibrary() const{return *ptrLibrary;};
If ptrLibrary is actually a pointer, then it's just:
If it's an object, then you have to return the address of it using the address-of operator:Code:return ptrLibrary;
Code:return &ptrLibrary;
You should really study your pointers...