C++ base and derived classes
<p>I am having trouble with this program. I figured I wouldn't be able to make references to the derived classes such as 'good' in the base class 'fairy' but I need to get the name of the fairy which was stored in the fairy base class. I did this by the code you can see in main. Even though the assignment wants me to do it in the base class. That is not the main problem. I have to figure a way to call the derived classes so the base class can respond to the various request for 'wish' and 'help' in the different derived classes. I have searched on cplusplus.com but could not find how i would be able to do this. I realize this might not be possible but the assignment asked me to do it this way so i am going on the assumption it is. 
If someone could help me i would greatly appreciate it. I pasted my code in pastebin the link is : <a href="http://pastebin.com/72kuXc7w" rel="nofollow">http://pastebin.com/72kuXc7w</a> </p>

<p>I put the assignment below just in case anyone is confused how this program should work:</p>

<p>Encountering Fairies</p>

<p>You will define a small hierarchy of fairy classes. In main(), you will then instantiate (i.e., create) several fairy objects, but no more than 5. When the user encounters a fairy, the fairy will state his/her name and ask what the user wants. In response, the user may:</p>

<p>Ask for a wish,<br>
Offer to help the fairy, or<br>
Say goodbye to the fairy<br>
The user will continue to interact with the fairy until the user chooses the final option, saying goodbye to the fairy. Once the user says goodbye, the game moves on to the next fairy. After the user has encountered all of the fairies, the game is over and the user's points total is displayed. Below are constraints for each class in the hierarchy.
<br>
<code>Fairy (base class)</code>:<br>
Must state his/her name and a greeting<br>
Must ask what the user wants<br>
Must respond to requests for wishes<br>
Must respond to offers to help<br>
<br>
<code>Good Fairy (derived class)</code>:<br>
Will always grant a wish<br>
For each wish granted, the user gets 10 points<br>
Will accept an offer for help, but then decline additional offers<br>
The user earns 50 points, for the offer to help<br>
Can grant up to 5 wishes<br>
<br>
<code>Evil Fairy (derived class)</code>:<br>
Will always deny the user's wish; i.e., cannot grant any wishes<br>
For each wish denied, the user loses 10 points<br>
Will always reject an offer of help<br>
For each offer rejected, the user loses 50 points<br>
<br>
<code>Equivocal Fairy (derived class)</code>:<br>
Will grant the user's wish sometimes (based on random number generator)<br>
For each wish granted, the user gets 10 points<br>
For each wish denied, the user loses 10 points<br>
Will respond to an offer of help with the statement, "I'll think about it"<br>
Can grant up to 3 wishes<br>
<br></p>
