title: char array to int array and delete an char c#
body: <p>im trying to make a song in beeps with pi and i need to delet the dot (pi1[1]) (<em>) and i need to convert the char array pi1 to int array pi2 (</em>*)        </p>
  
  <pre><code>double a = Math.PI;
  string b=a.ToString();
  char[] pi1 = b.ToCharArray();
  * pi1[1] = '0';
  int[] pi2;
  for (int i = 0; i &lt; pi1.Length; i++)
  {
  **    pi2[i] = int.Parse(pi1[i].ToString());
  }
  //for (int i = 0; i &gt; 40; i++)
  //{
  //    Console.Beep(100*c, 100);
  //}
  </code></pre>