2003

Grusel++ of the month

Home
Download Source
/******************************************************************************/
/*                                                                            */
/*                                                          FILE: january.cpp */
/*                                                                            */
/*  This program will probably increase the number of visitors of my site ;-) */
/*  ========================================================================= */
/*                                                                            */
/*  Compiled and tested with Visual C++ V6.0                                  */
/*                                                                            */
/*  This program is probably not portable because the string returned         */
/*  by the name() method is not specified by the standard                     */
/*                                                                            */
/*  V1.00   28-JAN-2003   P. Tellenbach   http://www.heimetli.ch/             */
/*                                                                            */
/******************************************************************************/

#include <iostream>
#include <typeinfo>
#include <string>

using namespace std ;

#define LESS  -1
#define SEX   6
#define NO    0
#define MORE  *

class world
{
  public:
    virtual ~world() {}
} ;

class Hello : public world
{
} ;


int main()
{
  cout << typeid(Hello).name() + SEX << typeid(world).name() + SEX LESS << " !" << endl ;

  return NO MORE SEX ;
}