Initialize an array with both upper and lowercase letters C++
<pre><code>//Loop to initialize the array of structs; set count to zero

for(int i = 0; i &lt; 26; i++)
{
    //This segment sets the uppercase letters
    letterList[i].letter = static_cast&lt;char&gt;(65 + i);
    letterList[i].count = 0;

    //This segment sets the lowercase letters
    letterList[i + 26].letter = static_cast&lt;char&gt;(97 + i);
    letterList[i + 26].count = 0;
}
</code></pre>

<p>//this doesnt seem to work!!!</p>

<p>The entire program, takes a text file, reads it and then prints out each letter used, the number of times it was used and the percentage of occurance...however, my output keeps coming out as:</p>

<p>Letter  Count   Percentage of Occurrence</p>

<p>¿       0 0.00%          </p>

<p>52 times....</p>

<p>ive searched all over and cant seem to get this...</p>
