If queueAux.Count > 0 Then For Each c As Char In queueAux If Char.IsDigit(c) Then stackAux.Push(c) Else a = Convert.ToDouble(stackAux.Pop + "") b = Convert.ToDouble(stackAux.Pop + "") op = salida.Dequeue() If op.Equals("+") Then res = a + b resConv = Convert.ToChar(res) stackAux.Push(resConv) End If End If Next Else If stackAux.Count = 1 Then Console.WriteLine("The result is " + stackAux.Peek) End If End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)