The C and C++ languages compile to binary machine code, unlike Java and C# which generate instructions for a 'virtual machine' or interpreted scripting languages such as JavaScript. The compilation of C++ is performed by a separate executable, the compiler, which is not incorporated into the resulting executable.
So the language does not have any built in "eval" capability to translate further code once compilation is finished.
It's not uncommon for new C/C++ programmers to think they need to do this, but they typically don't. Perhaps you could expand further on what you're actually looking to do.
But if you do actually need to be able to do this, your options are:
- Write code to compile a new executable with the new code and then run the resulting program.
- Write a simple parser and "virtual machine" of your own,
- Look at incorporating an embedded scripting/interpreted language such as Lua,
- Try and wrap your head around integrating CINT,
See also: Scripting language for C++