I'm trying to pass the object storyWordManager into the constructor function of object madLib. Than use a pointer to the storyWordManager object to get information from the storyWordManager object.
Thanks
19 I:\Assignment7PointersAndClasses\main.cpp
no matching function for call to `MadLib::MadLib(StoryWordManager*)'
cout << "\nHere's your story:\n";
cout << "The famous explorer ";
cout << *storyWordManagerPtr->m_Name();
cout << " had nearly given up a life-long quest to find\n";
cout << "The Lost City of ";
cout << *storyWordManagerPtr->m_Noun;
cout << " when one day, the ";
cout << *storyWordManagerPtr->m_Noun;
cout << " found the explorer.\n";
cout << "Surrounded by ";
cout << *storyWordManagerPtr->m_Number;
cout << " " << *storyWordManagerPtr->m_Noun;
cout << ", a tear came to ";
cout << *storyWordManagerPtr->m_Name << "'s ";
cout << *storyWordManagerPtr->m_BodyPart << ".\n";
cout << "After all this time, the quest was finally over. ";
cout << "And then, the ";
cout << *storyWordManagerPtr->m_Noun << "\n";
cout << "promptly devoured ";
cout << *storyWordManagerPtr->m_Name << ". ";
cout << "The moral of the story? Be careful what you ";
cout << *storyWordManagerPtr->m_Verb;
cout << " for.\n";
}