2000

Grusel++ of the month

Home
Download Source
/******************************************************************************/
/*                                                                            */
/*                                                           FILE: AUGUST.CPP */
/*                                                                            */
/*  Have you ever seen these operators of the preprocessor ?                  */
/*  ========================================================                  */
/*                                                                            */
/*  Compiled and tested with Visual C++ V6.0                                  */
/*                                                                            */
/*  V1.00   31-AUG-2000   P. Tellenbach   http://www.heimetli.ch/             */
/*                                                                            */
/******************************************************************************/

#include <iostream>

using namespace std ;

#define String(s) #s

#define Concat(a,b) String(a ## b)

#define Main(a,b) \
   int main( int argc, char *argv[] ) { \
     cout << Concat(a,b) ; \
     return 0 ; \
   }

Main(Hello world,!)