Is there any built in function in CPP to see member variable ? for example: '''
struct X
{
data-type var1;
data-type var2;
};
int main()
{
struct X A1;
cout<< func(A1);
//here the func will return the var1 and var2 for A1 , and print it for me
return(0);
};
''' output:
var1var2