Help, im new to C++ i need some advice
<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
  cout &lt;&lt; "Input a Sentence: ";
  cin &gt;&gt; x;
  {
  char* string = x;
  int letter_count[26];

  // Initialization
  for(int i=0; i&lt;26; letter_count[i++]=0);

  // Counting the number of letters
  for(int i = 0; string[i] != '\0'; i++) {
    if(string[i] &gt; 64 &amp;&amp; string[i] &lt; 91)
      letter_count[string[i]-65]++;
    else if (string[i] &gt; 96 &amp;&amp; string[i] &lt; 123)
      letter_count[string[i]-97]++;

    else if (string[i] == '.')
      break;
  }

  // Show the result

  for(int i=0; i &lt; 26; i++)
    if (letter_count[i] != 0)
      std::cout &lt;&lt; letter_count[i] &lt;&lt; " "&lt;&lt; char(i+97) &lt;&lt; std::endl;
  }
}
</code></pre>

<p>Why doesn't this program compile?</p>
