Better_BASIC_A_Beginners_Guide_to_Writing_Programs.pdf

(28397 KB) Pobierz
USBORNE GUIDE TO
BASIC
Brian Reffin Smith
and Lisa Watts
Illustrated
by
Graham Round
BETTER
Designed by Graham Round
Additional
artwork
by Martin Nltwton
Contents
4
introducing
BASIC
5
Guide to BASIC
10 The BASIC
in
this
book
Learning BASIC by
studying
programs
14 Using strings
16
Loops and random nwnbers
18 Making a soccer database
26
Instant graphics
12
30
Programs (or sorting data
36
Drawing graphs
38
More
string
handling
46 Converting the programs
48
Answers
and Index
1
,
2
Aboutthis book
This
book
is
a
step-by-step guide 10 undemanding proqrams and improving
your
BASIC. Not
everyone wants
10
write their own programs, but once you
understand
how
BASIC works,
it is
easy to adapt or debug olherpeople's
programs and from there
it
is
a short step to writing your own.
At the
beginnino of
the
book there
is
a short guide to the
main
BASIC
commands,
with lots
of examples 10 show how they
work.
The next
part
of the
book
shows
how
the commands are
used
in
programs
10 doquil8
complicated things.
such
as creating a
database,
making panems on the
screen
and
sorting
data.
The programs are
wrinen
in
Mstandard~
BASIC,
that
is,
a version of
BASIC
which,
with
minor
alterations,
will
work on most microcomputers.
There
isa
guide to converting the proqrams
10
work
on your computer on pages 10·11
and
the
conversions for Sinclair computers, which use slightly non-standard
BASIC,
are
given at
the end of
the
book.
Alonqside
all
the programs there are detailed explanations of
how
they
work
and of useful techniques and
routines which you
cou1d use
in
yourown
programs.
There are lots
of ideas, too, for experimenting with the programs
and adapting them
for
carrying out different tasks.
3
Zgłoś jeśli naruszono regulamin