As part of a metrics tool i'm developing these days i wrote something like that:
#include <iostream> class Player { int health; int strength; int agility; public: void move(); void attackMonster(); void getTreasure(); }; void Player::move() { // empty } void Player::attackMonster() { // empty } void Player::getTreasure() { // empty } int main(int argc, char** argv) { // do nothing }I didn't want to do anything serious just to calculate NPM and wanted just a class declaration. For some reason, i found the syntax very charming. Maybe my friend george has something to do with it. All these lectures about C++ and the templates had done something in my subconscious.