I feel that someone should point out that having public member variables is generally very poor practice. The coding standards at my work require all member variables to be private.
bguild commented: Going the extra mile to be helpful +6
Banfa 597 Posting Pro Featured Poster
I_m_rude commented: quite explaintary. +2
Ancient Dragon commented: yes :) +14
mrnutty commented: Agree, infact he should generalize it into a CalculateMean function +12
triumphost commented: THANLS!! I solved it! +6
Ketsuekiame commented: Solution as requested, with example. Clear and concise. :) +9
slygoth commented: Thanks this helps +0
Banfa 597 Posting Pro Featured Poster
Ancient Dragon commented: good suggestions :) +35
jonsca commented: Good one. +6
Ancient Dragon commented: great answer +35
amala.123 commented: Thanks a lot for your patience and very well explained +1
gozlemci commented: for your interest +0
nbaztec commented: Really! I didn't know that. Thanks for the info. +1
Ancient Dragon commented: Agree +28