Hi
is there a way to convert a string to a function name and fire it. like
void his_fun(){
cout << "his is here" << endl;
}
vector<stringve c;
vec.push_back(" his");
vec.push_back(" me");
for(i=0; i<vec.size(); i++)
string var = vec[i] + _fun;
fire(var); and it will fire the routine "his_fun?
is so, how?
thanks
is there a way to convert a string to a function name and fire it. like
void his_fun(){
cout << "his is here" << endl;
}
vector<stringve c;
vec.push_back(" his");
vec.push_back(" me");
for(i=0; i<vec.size(); i++)
string var = vec[i] + _fun;
fire(var); and it will fire the routine "his_fun?
is so, how?
thanks
Comment