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();
}
Like this:
Like Loading...
This entry was posted on 2011/07/16 by Bryce Yan. It was filed under Computer Science and was tagged with C++, Love.
Leave a Reply