title: Accessing class members in c++
body: <p>I got back coding in C++ after a long while and was wondering if there is a way to access data member of a class quickly for manipulation.</p>
  
  <p>Assume a case where you have like 10 data members in a class which overloads a bunch of operators (thought of this while overloading operator=). Now you would want to add/subtract a few data members to the class.
  Is there a generic way to accomplish this without having to go to individual functions and change them? I'm thinking of a possibility of running through all the members of a class in a kind of loop construct.</p>