title: How to put char ('X') to int array?
body: <p>Hi I have 2D array type of int where I have numbers, for example from 1 to 100. </p>
  
  <p>It's a game - something like Tic-Tac-Toe - but I use bigger array. So I need to put a character 'X' or 'O' from user to this array. But problem is I can't (don't know) how to put these characters in that int array. I wan to use only the console.</p>
  
  <p>I tried make the array type of char but then I can't fill the array with numbers. </p>
  
  <p>I know how to do it if user would have want put some numbers but then It doesn't look good...</p>
  
  <p>I would be happy for any advice how to do it.</p>
  
  <pre><code>public void Napln () { //filling the array
          int poc = 1;
  
          for (int i = 0; i &lt; pole.GetLength(1); i++)
          {
              Console.Write(" ");
              for (int j = 0; j &lt; pole.GetLength(0); j++)
              {
                  if (poc &lt; 10)
                      Console.Write(" " + (pole[j, i] = poc++) + "  | ");
                  else if ( poc &lt; 100 )               
                      Console.Write( (pole[j,i] = poc ++) + "  | ");
                  else                    
                      Console.Write((pole[j, i] = poc++) + " | ");                    
              }
              Console.WriteLine();
              for ( int v = 0; v &lt; roz1; v ++ )
                  Console.Write("_____|");
              Console.WriteLine();
          }
          Console.WriteLine();
  
   public void Pozice (int vyber) //find the user choice 
      {
          for ( int i = 0; i &lt; pole.GetLength(1); i ++ )
          {
              for ( int j = 0; j &lt; pole.GetLength(0); j ++ )
              {
                  if (pole[i, j] == vyber)
                  {
                      pole[i, j] = 'X';          
                      hraci.Vypis();
                  }
              }
          }
      }
   public void Vypis() //print the same with change of user choice
      {
          for ( int i = 0; i &lt; pole.GetLength(1); i ++ )
          {
              Console.Write(" ");
              for ( int j = 0; j &lt; pole.GetLength(0); j ++ )
              {
                  if (pole[j,i] &lt; 10)
                      Console.Write(" " + pole[j, i] + "  | ");
                  else if (pole[j,i] &lt; 100)
                      Console.Write(pole[j, i] + "  | ");
                  else
                      Console.Write(pole[j, i] + " | ");
              }
              Console.WriteLine();
              for (int v = 0; v &lt; roz1; v++)
                  Console.Write("_____|");
              Console.WriteLine();
          }
      }
  </code></pre>
  
  <p>I am the new one in C# especially the OOP. So if you have any more advice I would be happy. </p>