I'm levitating

Posts tagged “C++

My Ode to Love in C++

#include <life>
using namespace myUniverse;

class love {
  int intensity;
public:
  int  fall_in (int i);
  int  fall_out(int i);
  virtual bool isTrue    () = 0;
  virtual void firstSight() = 0;
  virtual void freeAgain () = 0;
  love();
  ~love();
};

int love::fall_in(int i)
{
  instensity += i;
}

int love::fall_out(int i)
{
  instensity -= i;
}

love::love()
{
  intensity = 0;
  firstSight();
}

love::~love()
{
  freeAgain();
}