1999

Grusel++ of the month

Home
Download Source
/******************************************************************************/
/*                                                                            */
/*                                                         FILE: DECEMBER.CPP */
/*                                                                            */
/*  Hello world, C++ Style                                                    */
/*  ======================                                                    */
/*                                                                            */
/*  Compiled and tested with Visual C++ V6.0                                  */
/*                                                                            */
/*  V1.00   23-DEC-1999   P. Tellenbach   http://www.heimetli.ch/             */
/*                                                                            */
/******************************************************************************/

#include <iostream.h>

struct HelloWorld
{
   HelloWorld()
   {
       cout << "Hello world !" << endl ;
   }
} _ ;

int main( int argc, char *argv[] )
{
   return 0 ;
}

Update 21. December 2019

I had to upgrade from iostream.h to iostream and add the namespace prefixes.

No further changes were necessary, which proves the stability of the C++ specification.

/******************************************************************************/
/*                                                                            */
/*                                                         FILE: DECEMBER.CPP */
/*                                                                            */
/*  Hello world, C++ Style                                                    */
/*  ======================                                                    */
/*                                                                            */
/*  Compiled and tested with Visual C++ V6.0                                  */
/*                                                                            */
/*  V1.00   23-DEC-1999   P. Tellenbach   http://www.heimetli.ch/             */
/*                                                                            */
/*  Compiled and tested with g++ V8.3.0                                       */
/*                                                                            */
/*  V2.00   21-DEC-2019   P. Tellenbach   https://www.heimetli.ch             */
/*                                                                            */
/******************************************************************************/

#include <iostream>

struct HelloWorld
{
   HelloWorld()
   {
       std::cout << "Hello world !" << std::endl ;
   }
} _ ;

int main( int argc, char *argv[] )
{
   return 0 ;
}