stats.h 348 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

#ifndef STATS_H
#define STATS_H

#include <string>
#include <iostream>
#include <iomanip>

using namespace std;

class Stats {
 public:
  string label;
  int nb;
  int length;

 public:
  Stats();
  void setLabel(string _label);
  void insert(int _length);

  float getAverageLength();
};

ostream &operator<<(ostream &out, Stats &stats);

#endif