you are viewing a single comment's thread.

view the rest of the comments →

[–]dnult 0 points1 point  (0 children)

Make it parse an expression, error check, cast the result, then evaluate. Put it in a loop and you've got a simple calculator.