Is it possible to convert a raw string to code in c++?
For example I have a string
string s = "cout << "Hello World";";
I want to generate that code programatically. Maybe i want to insert that code in various parts of the program dynamically.
cout << "Hello World";
Also, is it possible to generate code using loops in c++ maybe using pre-processor directives?