The_Basic_Cookbook.pdf

(5032 KB) Pobierz
s
e
Cent
ety-Fiv
and
Nin
DOl/ars
2-2007
Two
. N o.
6
Cat
i
The BASIC
COOkbOOk
By
Ken Tracton
M
DIVISION OF TANDY CORPORATION
A
IliaeK
FIRST EDITION
Copyright
©
1978 by TAB BOOKS
Printed in the United States
of America
Reproduction or publication of the content in any manner. without express
permission of the publisher. is prohibited. No liability is assumed with respect
to the use of the information herein.
Library of Congress Cataloging in Publication Data
Tracton. Ken.
The BASIC cookbook.
Includes index.
1. BasIc (Computer program language)
I.
Title.
QA76.73,B3T7
001.6'424
78-4578
ISBN 0-8306-9901-5
ISBN 0-8306-1005-3 pbk.
Preface
BASIC was originally developed by John Kemeny and Thomas Kurtz
in the 1960's at Dartmouth College. The ease of use and the simpli-
city of learning BASIC was noticed by various time-sharing services,
who then started to implement BASIC for the use of their custom-
ers. BASIC now is no longer so basic. as there are many versions
that are quite advanced. This book covers
all
the functions presently
available on the majority of BASIC language versions. elementary or
advanced. The user of this book can become adapted to any version
of BASIC with little difficulty.
If
you're in a computer course. you will be taught how to
program in BASIC or a similar language.
If.
however. you have
purchased a microcomputer, you will either receive with it a guide to
programming of some kind or be referred to such a guide. The
intention of this text is to give you a dictionary of terms used in
BASIC with examples to illustrate all the functions and operations.
as well as such mode and system commands as LOAD. RUN. SAVE
and LIST.
Each statement. command or function. is provided with exam-
ples and. where deemed necessary. a programming example and a
flowchart have been included.
I believe that once a fundamental understanding is reached on
how the different statements and functions operate, the diligent user
will
be in a position to start exploring the multi-uses of BASIC. Also.
since all the functions are in alphabetical order. this text may be used
as a reference guide when using different versions of this common
language.
If
you already know the BASIC of your machine, you may find
many terms which are missing from either your version of BASIC or
from this text. Terms missing from this text are usually non-
standard or "machine dependent" instructions, and you should rely
on the guide that comes with your computer. Terms that are missing
from your version of BASIC. and are in this text, are either
synonyms, different ways of doing the same function, or have been
left out for some reason.
I would like to thank David and Susan who drew the flowcharts
from my sketched diagrams and repeatedly questioned me on what I
was doing. I would also like to thank MITS (creator of the Altair) in
the generous use of a model 680 computer, which proved to be a
very useful tool in testing many of the programs.
I especially appreciate the advice Doreen and Owen gave me,
and their invaluable help.
I wish to express my gratitude to Ms. Jane Hunt who took the
time to decipher and decode my barely readable notes and to type the
original manuscript. Without her time and patience this text would
never have been finished.
Ken Tracton
Zgłoś jeśli naruszono regulamin