will you please tell me why the conversion does not work ,in this code!! (I'm abegginer!!!!):)
using System;
namespace ConsoleApplication4
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
string strPoly;
int[] Int = new int [10];
int[] num = new int [3];
int c=0; //flag for checking number of integers;
int temp=0;
int i=0,exp =1;
int j=0;
int flag=0;
strPoly = Console.ReadLine();
foreach ( char obj in strPoly)
{
switch (obj)
{
case '+' :
case '=' :
case '-' :
case '^' :
case '*' :
flag =1;
goto conversion;
default:
if ( 47 < obj & obj < 58)
{
Console.WriteLine("temp:{0}",temp);
Int[i] = Convert.ToInt32(obj);///THIS IS THE LINE

Console.WriteLine("temp1={0}",temp);
i++;
}
else
Console.WriteLine("there is an invalid or Unknown character '{0}' in the polynomial you enter!",obj);
break;
}
conversion :
if (flag == 1)
{
exp=1;
j=0;
for( temp =i-1; temp >= 0;temp--)
{
num[c] =Convert.ToChar(Int[temp])*exp + num[c];
exp =exp * 10;
}
Console.WriteLine("{0}th number is {1}:",c,Convert.ToInt32(num[c]));
c++;
i=0;
flag = 0;
}
}
Console.ReadLine();
}
}
}