Home » Archimedes archive » Acorn User » AU 1994-12.adf » !C/!Help

!C/!Help

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 User » AU 1994-12.adf
Filename: !C/!Help
Read OK:
File size: 0235 bytes
Load address: FFFFFF45
Exec address: A3691482
File contents
C Tutorial
by David Matthewman

This archive contains a program to accompany the C tutorial in the magazine.The source code for the program is in the �c� directory, with the executable program itself in the root directory of the archive (provided for those of you without a C compiler).

The program � Kate1 � is the start of a rudimantary database for storing information about a set of photographs on a film. It is commented, and serves to illustrate the use of arrays in C mentioned in the �C for yourself� article in the magazine.

� Copyright Acorn User 1994

00000000  43 20 54 75 74 6f 72 69  61 6c 0a 62 79 20 44 61  |C Tutorial.by Da|
00000010  76 69 64 20 4d 61 74 74  68 65 77 6d 61 6e 0a 0a  |vid Matthewman..|
00000020  54 68 69 73 20 61 72 63  68 69 76 65 20 63 6f 6e  |This archive con|
00000030  74 61 69 6e 73 20 61 20  70 72 6f 67 72 61 6d 20  |tains a program |
00000040  74 6f 20 61 63 63 6f 6d  70 61 6e 79 20 74 68 65  |to accompany the|
00000050  20 43 20 74 75 74 6f 72  69 61 6c 20 69 6e 20 74  | C tutorial in t|
00000060  68 65 20 6d 61 67 61 7a  69 6e 65 2e 54 68 65 20  |he magazine.The |
00000070  73 6f 75 72 63 65 20 63  6f 64 65 20 66 6f 72 20  |source code for |
00000080  74 68 65 20 70 72 6f 67  72 61 6d 20 69 73 20 69  |the program is i|
00000090  6e 20 74 68 65 20 90 63  91 20 64 69 72 65 63 74  |n the .c. direct|
000000a0  6f 72 79 2c 20 77 69 74  68 20 74 68 65 20 65 78  |ory, with the ex|
000000b0  65 63 75 74 61 62 6c 65  20 70 72 6f 67 72 61 6d  |ecutable program|
000000c0  20 69 74 73 65 6c 66 20  69 6e 20 74 68 65 20 72  | itself in the r|
000000d0  6f 6f 74 20 64 69 72 65  63 74 6f 72 79 20 6f 66  |oot directory of|
000000e0  20 74 68 65 20 61 72 63  68 69 76 65 20 28 70 72  | the archive (pr|
000000f0  6f 76 69 64 65 64 20 66  6f 72 20 74 68 6f 73 65  |ovided for those|
00000100  20 6f 66 20 79 6f 75 20  77 69 74 68 6f 75 74 20  | of you without |
00000110  61 20 43 20 63 6f 6d 70  69 6c 65 72 29 2e 0a 0a  |a C compiler)...|
00000120  54 68 65 20 70 72 6f 67  72 61 6d 20 98 20 4b 61  |The program . Ka|
00000130  74 65 31 20 98 20 69 73  20 74 68 65 20 73 74 61  |te1 . is the sta|
00000140  72 74 20 6f 66 20 61 20  72 75 64 69 6d 61 6e 74  |rt of a rudimant|
00000150  61 72 79 20 64 61 74 61  62 61 73 65 20 66 6f 72  |ary database for|
00000160  20 73 74 6f 72 69 6e 67  20 69 6e 66 6f 72 6d 61  | storing informa|
00000170  74 69 6f 6e 20 61 62 6f  75 74 20 61 20 73 65 74  |tion about a set|
00000180  20 6f 66 20 70 68 6f 74  6f 67 72 61 70 68 73 20  | of photographs |
00000190  6f 6e 20 61 20 66 69 6c  6d 2e 20 49 74 20 69 73  |on a film. It is|
000001a0  20 63 6f 6d 6d 65 6e 74  65 64 2c 20 61 6e 64 20  | commented, and |
000001b0  73 65 72 76 65 73 20 74  6f 20 69 6c 6c 75 73 74  |serves to illust|
000001c0  72 61 74 65 20 74 68 65  20 75 73 65 20 6f 66 20  |rate the use of |
000001d0  61 72 72 61 79 73 20 69  6e 20 43 20 6d 65 6e 74  |arrays in C ment|
000001e0  69 6f 6e 65 64 20 69 6e  20 74 68 65 20 90 43 20  |ioned in the .C |
000001f0  66 6f 72 20 79 6f 75 72  73 65 6c 66 91 20 61 72  |for yourself. ar|
00000200  74 69 63 6c 65 20 69 6e  20 74 68 65 20 6d 61 67  |ticle in the mag|
00000210  61 7a 69 6e 65 2e 0a 0a  a9 20 43 6f 70 79 72 69  |azine.... Copyri|
00000220  67 68 74 20 41 63 6f 72  6e 20 55 73 65 72 20 31  |ght Acorn User 1|
00000230  39 39 34 0a 0a                                    |994..|
00000235