Here is an example:
"How do I initialize the const data members of my objects?"
class PinkFloyd { public: PinkFloyd(int the_world) : they_rule(the_world) {} private: const int they_rule; };For more info, lookup "constant data members" in your favorite C++ book!
~cs564-1/assigns/assign1/sample/
(Note, the current TAs did not write the solution.)