18 lines
198 B
C++
18 lines
198 B
C++
// Counter.hh
|
|
|
|
#ifndef COUNTERHH
|
|
#define COUNTERHH
|
|
|
|
class Counter
|
|
{
|
|
public:
|
|
Counter(){ counter++ ; }
|
|
~Counter(){ counter-- ; }
|
|
|
|
static int getCounter();
|
|
|
|
|
|
static int counter ;
|
|
|
|
};
|
|
#endif
|