All pastes #159360 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-09-03 00:13 UTC
rendered paste body
class nint 
{
protected:
  int value;

public:
  nint()
  {
    //default value 0
    value = 0;
  }
  template<class T> nint(T v)
  {
    value = v;
  }
  template<class T> T operator= (T v)
  {
    value = v;
    return v;
  }

  int toInt() 
  {
    return value;
  }
};

Thank you for your time,
Arrummzen