Menu

Behavior is not expected

FadeevM
2012-03-27
2012-07-13
  • FadeevM

    FadeevM - 2012-03-27

    Hello. I will find your post on portal "habr.ru".
    I can't commented in topic "http://habrahabr.ru/post/140075/" becouse not invited, anyway i find some bugs.
    1) Сode does not match the algorithm (line 169 - need add check)
    2) If input expression are not correctly (2++8+*2) on output (stack) not correctly RPN expression.

     
    • Anonymous

      Anonymous - 2012-03-27

      Thanks for your feedback!

      Думаю, дальше можем общаться по-русски :)

      Я не совсем понял суть багов... Начну со второго. На приведенное выражение вылетит ParseException, как и должен (т.к. выражение некорректное). В баг? Вполне ожидаемое поведение.

      Первый вообще не понял. Какую именно проверку необходимо вставить на 169 строке?

       

Log in to post a comment.

MongoDB Logo MongoDB