#ifndef COUNTER_CPP
#define COUNTER_CPP
#include <iostream>
#include <cstdlib>

//ΠΟΛΥΚΑΡΠΟΣ ΜΕΡΕΝΙΔΗΣ 13169
//ΚΑΣΤΡΙΝΑΚΗ ΣΤΑΜΑΤΙΑ 12892

using namespace std;

#include "Counter.hpp"

//υλοποιηση  constractor

Counter::Counter(int value) {
	count_max = value;
	value = 0;
	overflow = false;
}
void Counter::reset(){
	count=0;
	overflow = false;
	}

void Counter::incr1(){
	count=count + 1;
	if (count > count_max)
		overflow = true;
}

void Counter::incr10(){
	count=count + 10;
	if (count > count_max)
		overflow = true;
}

void Counter::incr100(){
	count=count + 100;
	if (count > count_max)
		overflow = true;
}


#endif
