given a class
struct {
  int a1;
  bool a2;
  ...
  char* a500;
  ...
  char a10000;      
}
I want to print or stream out
"a1 value is SOME_VALUE"  
"a2 value is SOME_VALUE"
"a500 value is SOME_VALUE"
...
"a10000 value is SOME_VALUE"
the type of the member variables are not the same (mainly, int, bool, char*, etc, i.e., no need to overload << operator), and the member variable name could be named with anything, i.e., no rule to follow. Instead of typing explicitely one by one (very big tedious, and error-prone work), is there any generic way?
Thanks for any comments!
 
     
     
     
     
     
    