Access a value from a separate function
<pre><code>class FinalList {
    Location List[20];
    int MaxSize;
    int Size;


public:
    FinalList()
    {
        MaxSize = 20;
    }

    void RunIt();
    void Show();
    void Mean();
    void Menu();
};


void FinalList::Mean()
{
    int K;
    double Total;
    double Average;

    for(K=0 ; K &lt; Size ; K++)
        Total += List[K].Value;

    Average = Total / Size ;
    cout &lt;&lt; "Average: " &lt;&lt; Average &lt;&lt; endl;
}

void FinalList::Show()
{
    int Count;

    for(Count = 0; Count &lt; Size ; Count++)
        List[Count].Display();

    cout &lt;&lt; "Average: " &lt;&lt; Average &lt;&lt; endl;
}
</code></pre>

<p>I can calculate the average value from the array in <code>Mean()</code>.  But how can I later access this value in <code>Show()</code>?</p>
