I have commands in a string something like:
string comm = "int x; cout << \"Digite um número\"; cin << x;";
My idea is to execute the commands that are in this string , having the result as if I had typed:
int x
cout << "Digite um número";
cin << x;
Is there any command to do this?
I thought of doing using in reader that identifies patterns and performs functions, but this would be very complicated, beyond what, I do not know how I would do to create the variables.