You cannot do it in any simple way. In some interpretive languages, and even in some compiling languages, this is a fundamental feature, but C++ is not one of them.
You will need to create some compiler or interpreter to parse and execute your string. You can start here:
http://www.codeproject.com/search.aspx?q=C%2b%2b+expression+parser&doctypeid=1%3b2%3b3%3b13%3b14%3b5[
^].
Alternative way would be not using strings at all. You can develop special types representing nodes of
expression tree and the tree itself, which your could use to create expressions right in C++ code. In other words, it's possible to develop something similar to .NET
lambda expressions. But I guess it would take me writing a whole book to explain it. Your question strongly suggests that you are not ready for such works yet.
—SA