Is there a way where i can call a function in
a class without using the name of the function.

class A
{
public :
int x
void print(){cout<<"Hello";}
};

A *a;
then using this pointer call print function
without using the name. I dont want to use
a->print();

I am in this situation beacuse i have the name of the function in database. using that name and the name of the class i want to call the function.





Please rate the article if it is of any use to you. This encourages me to reply more and more and more.