C++


We have two entries for this language. One originates from the early days of the Hello World Project; the other is rather newer. This is the original code:


#include <iostream.h>

main()
{
    for(;;)
    {
        cout << "Hello World! ";
    }}

submitted by: bronson@engr.latech.edu (Patrick Bronson)

Here's the newer model:


#include <iostream>

int main()
{
    std::cout << "Hello, world!\n";
}

submitted by a.mcintyre@thermoteknix.co.uk (Alasdair McIntyre)