Not able to use function variables ? Error expression must have class type
<p>Hey i want to use the function wolves variable in the storyline and im trying to do this :</p>

<pre><code>"\nYou awake on a beach to the sound of"&lt;&lt; Wolves().name; " starving and blood hungry," 
        "\nThere is a Rock on the ground.  You pick it up";
        inventory.push_back("Rock");
</code></pre>

<p>But Wolves().name;  there is an error as mentioned in the title.  Why cant i do this?</p>

<p>Here is the code for the function Wolves:</p>

<pre><code>void Wolves()
{
    string name = "Wolves";
    int health = 20;
    hitPoints() +1;
}
</code></pre>
