Can any1 tell me why the code inside the if statement isnt executed??
input = 2+2 in this case
I know the problems lies in the use of Equals, but cant isolate the problem..Code:while (curPos < length) { if (input[curPos].Equals("0") || input[curPos].Equals("1") || input[curPos].Equals("2") || input[curPos].Equals("3") || input[curPos].Equals("4") || input[curPos].Equals("5") || input[curPos].Equals("6") || input[curPos].Equals("7") || input[curPos].Equals("8") || input[curPos].Equals("9")) { System.Console.Write("TEST"); tmpexp += input[curPos]; } temp += Convert.ToInt32(tmpexp); curPos++; }




Reply With Quote