If I have some c++ code as a string quantity (data) in a c++ program, can I execute the contents of that string?
As using the CodeDOM in C# or the eval function present
No. As C++ is a static language, you can not dynamically eval arbitrary code.
You could interpret it or even compile and run it seperately as Keith suggested