使用std::accumulate计算和、积和平均值
摘要:
class DPoint { public: DPoint(double _x,double _y, double _z) : x(_x),y(_y),z(_z){} double x; double y; double z; }; class PointAverage: public binary_function { public: PointAverage():xSum(0... 阅读全文
posted @ 2010-10-20 20:48 flydream 阅读(1354) 评论(1) 推荐(0) 编辑