This repository has been archived on 2021-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
|
// Counter.hh
|
|
|
|
#ifndef COUNTERHH
|
|
#define COUNTERHH
|
|
|
|
class Counter
|
|
{
|
|
public:
|
|
Counter(){ counter++ ; }
|
|
~Counter(){ counter-- ; }
|
|
|
|
static int getCounter();
|
|
|
|
|
|
static int counter ;
|
|
|
|
};
|
|
#endif
|