2000

Grusel++ of the month

Home
Download Source
/******************************************************************************/
/*                                                                            */
/*                                                             FILE: JUNE.CPP */
/*                                                                            */
/*  Hello world implemented with an io manipulator                            */
/*  ==============================================                            */
/*                                                                            */
/*  Compiled and tested with Visual C++ V6.0                                  */
/*                                                                            */
/*  V1.00   30-JUN-2000   P. Tellenbach   http://www.heimetli.ch/             */
/*                                                                            */
/******************************************************************************/

#include <iostream>

using namespace std ;

ostream& HelloWorld( ostream& os )
{
  return( os << "Hello world !" ) ;
}

int main()
{
   return (cout << HelloWorld << endl).good() ;
}

Update 16. June 2020

This program still compiles and runs without any changes.