Calculator

A calculator for arithmetic expressions.

Calculator

Recently I came across the classic problem of evaluating an arithmetic expression.

That is, if you feed the program the string 2 + 2 * 2, it should output 6.

And for some reason I actually felt like writing it.

As we all know, classic problems have classic solutions, and this one is no exception.

Here you can find a fairly detailed description of the algorithm.

And here you can download the source code of a ready-made solution in C#.

Only registered users can leave a comment.

Sign in or register to leave a comment.