Standard Deviation Tempate Function@Onanymous What you say about the mean calculation makes sense. The casts in the code I posted were...
Standard Deviation Tempate FunctionThe mean of a set of integers is not necessarily an integer, hence the floating point type.
Standard Deviation Tempate Function[code]#include <cmath> template <typename T> double Mean(const T arr[], size_t n) { double me...
why i can't use array of referencesNot as evil as this: [code] int a1(0), a2(1), a3(2), a4(3); // Not too evil Ref<in...
why i can't use array of references[quote]...and having at least one reference as a class member makes the class uncopyable[/quote]That...