Is it possible (if yes, how to) execute a string as code?

Is it possible to execute a string as code? Like for example, if the program asks the user to enter c++ code. The program can get the input as string, but is it possible to actually execute the code the user entered? If yes, how?
Topic archived. No new replies allowed.