generic way to print out variable name in c++
given a class 

    struct {
      int a1;
      int a2;
      ...
      int a10000;  
    }

I want to print or stream out 

    "a1 value is SOME_VALUE"  
    "a2 value is SOME_VALUE"
    ...
    "a10000 value is SOME_VALUE"
the member variables 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!
generic way to print out variable name in c++
===

given a class 

    struct {
      int a1;
      int a2;
      ...
      int a10000;  
    }

I want to print or stream out 

    "a1 value is SOME_VALUE"  
    "a2 value is SOME_VALUE"
    ...
    "a10000 value is SOME_VALUE"
the member variables 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!