Hi friends,
how to Access structure variable value using string representing variable's name in C++.
For Example:
struct student
{
int rollnumber;
int mark1;
int mark2;
} *Stud;
instead of referring Stud->rollnumber and fetching value. I want to pass Variable name by string like this "Stud->rollnumber". Using this string I need to fetch actual value of Stud->rollnumber
friends can anyone help me.
Thanks and Ragards,
S.Shanmuga Raja