Thursday, 5 September 2013

How to access names by which data members are declared in c++ and output those names to console

How to access names by which data members are declared in c++ and output
those names to console

Code:
class A
{
private:
int abc;
string xyz;
}
In the above code, how can I access the names by which data members are
declared (abc, xyz) and print them to console?

No comments:

Post a Comment