Home » Archimedes archive » Acorn Computing » 1995 02 subscription disc.adf » 9502s » C++/HelloWorld

C++/HelloWorld

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn Computing » 1995 02 subscription disc.adf » 9502s
Filename: C++/HelloWorld
Read OK:
File size: 0072 bytes
Load address: 0000
Exec address: 0000
File contents
// The fabled 'Hello World' program - in C++

#include <iostream.h>

main()
{
        cout << "Hello World!\n";
}
00000000  2f 2f 20 54 68 65 20 66  61 62 6c 65 64 20 27 48  |// The fabled 'H|
00000010  65 6c 6c 6f 20 57 6f 72  6c 64 27 20 70 72 6f 67  |ello World' prog|
00000020  72 61 6d 20 2d 20 69 6e  20 43 2b 2b 0a 0a 23 69  |ram - in C++..#i|
00000030  6e 63 6c 75 64 65 20 3c  69 6f 73 74 72 65 61 6d  |nclude <iostream|
00000040  2e 68 3e 0a 0a 6d 61 69  6e 28 29 0a 7b 0a 20 20  |.h>..main().{.  |
00000050  20 20 20 20 20 20 63 6f  75 74 20 3c 3c 20 22 48  |      cout << "H|
00000060  65 6c 6c 6f 20 57 6f 72  6c 64 21 5c 6e 22 3b 0a  |ello World!\n";.|
00000070  7d 0a                                             |}.|
00000072