#include<iostream>
using namespace std;

class Counter{
  private:
    unsigned int count;   //count
  public:
    Counter() : count(0)        //constructor
    {  }
    unsigned int get_count() //return count
    { return count; }
    void operator ++ (){    //increment (prefix)
       ++count;
    }
};

main(){
  Counter c1, c2;
  int x=1; 
  cout << "\nc1=" << c1.get_count(); 
  cout << "\nc2=" << c2.get_count();
  //c1++;
  ++c1; ++c2; ++c2;  ++x; 	
  cout << "\nx ="<<x;
  cout << "\nc1=" << c1.get_count(); 
  cout << "\nc2=" << c2.get_count() << endl;
  system("pause");
}
