Evaluating arithmetic expressions from string in C++

One can try : http://partow.net/programming/exprtk/index.html

  1. very simple
  2. only need to include “exprtk.hpp” to your source code.
  3. you can change the value of variables of the expression dynamically.
  4. good starting point: http://partow.net/programming/exprtk/code/exprtk_simple_example_01.cpp

Leave a Comment