basic_1968.pdf

(1464 KB) Pobierz
BASIC
Fourth Edition
A Manual for BASIC, the elementary
algebraic language designed for use
with the Dartmouth Time Sharing System.
John G. Kemeny
Thomas E. Kqrtz
This edition prepared with the
assistance of David Cochran.
1 January 1968
@
Copyright 1968 by Trustees of
Dartmouth College.
The development of the BASIC
Language has been supported in
part
by
the National Science
Foundation under the terms of
Grant NSF GE 3864.
c
(
,
Fourth Ec;iitiQn
"--./
Dartmo~th Co~l~g~
com~utation
Center
1 Janua:r;y 1968
TABLE OF
CONT~NTS
"'--/
INTRODUCTION
WHAT IS A PROGRAM?
I.
A BASIC PRIMER
1.1
1.2
1,3
1
3
An example
Fonnulas
Loops
Lists and Tables
Use of the Time Sharin9 System
Errors and "Debu99 ing '.
Sununary of Elementary
BASlC
statements
1.7.1
LET
READ
and
DATA
3
11
~6
l.4
1.5
1.6
;1..7
20
24
28
32
32
33
l/
1.7.2,
1,.7.3
1.7.4
l.7~5
PRINT
G~
'l'fZ$
34
35
THEN
35
36
IF
~N
1.7.6
1.7.7
1.7.8
1.7.9
1;1:.
.
.
..
G~
Trzj
F~R
and NEXT
36
37
37
~8
DIM
END
APVANCED BASIC
2.1
2.2,
2.3
2.4
More about PRINT
Functions and OEF
G¢SUB apd RETURN
INPUT
Some Miscellaneous Statements
38
42
48
50
I~
2.5
51
I
'
....
----/
2.6
2.7
2.8
2.9
Matrices
Alphanumeric Information
Error Messages
Limitations on BASIC
53
63
70
74
APPENDICES
A
B
C
D
E
Using the Time-Sharing System
Library Files
EDIT
Program Names
Future Plans
(1 )
Passwords
Background BASIC
Data files
Chaining of programs
Segmenting of programs
Multiple teletype connections
Saving of compiled programs
77
77
81
82
83
83
83
83
83
84
84
84
85
L/
(2)
(3)
( 4)
(5 )
(6 )
( 7)
Zgłoś jeśli naruszono regulamin