Click Here!
home account info subscribe login search My ITKnowledge FAQ/help site map contact us


 
Brief Full
 Advanced
      Search
 Search Tips
To access the contents, click the chapter and section titles.

Learn Pascal in a Three Days (2nd Ed.)
(Publisher: Wordware Publishing, Inc.)
Author(s):
ISBN: 1556225679
Publication Date: 07/01/97

Bookmark It

Search this book:
 
Table of Contents


Index

A

ABS, 27, 46
AND, 42, 44, 47, 171
APPEND, 211, 214
Applications
average, 80
character counter, 136
character tester, 57
database, 285
employee file, 199
factorial, 82
frequency counter, 137
pascal credit card, 50
payroll, 201, 206, 208, 217, 235
powers of two, 78
scrambling letters, 134
sorting, 140, 155
text analyzer, 172
vending machine, 64
ARCTAN, 27, 45
ARRAY-OF, 106
Array
component, 106
declaration, 112, 121
index, 104
index range, 106, 108, 112, 121
initialization, 120
one-dimensional, 104, 106
sorting, 112
subscript, 104
two-dimensional, 104
ASCII, 33, 186
ASSIGN, 189
Assignment, 12

B

BEGIN, 1
Binary format, 186
BOOLEAN
compound expressions, 42
simple expressions, 40
Branching, 68
BYTE, 25

C

CASE, 63-64
Turbo Pascal features, 70
CASE-ELSE, 70
CASE-OF, 63, 246
CHAR, 32
CHR, 33
Character
counter, 136
tester, 57
type, 32
CLOSE, 189
COMP, 26
CONCAT, 142
CONST, 102, 121, 148
COPY, 143
COS, 27
Comments, 1

D

Data field, 259
Data files, 185
Data types, 95
enumerated, 96
numeric, 24
ordinal, 95
real, 95
scaler, 23
simple, 23, 95
standard, 23
structured, 95
subranges, 98
unstructured, 105
user-defined, 100
DELETE, 143
Decisions
making, 49
simple, 50
DISPOSE, 251, 294
Difference operator, 169
DOUBLE, 26
Dynamic memory allocation, 249

E

EBCDIC, 186
ELSE-IF, 57
END, 1
Enumerations, 95
EOF, 137, 190, 214
EOLN, 135, 190, 214
EXIT, 70
EXP, 27
EXTENDED, 26

F

FALSE, 40
FILE OF, 205, 213
Field, 180
Field list, 174, 183
Fielded variables, 176
File
closing, 188
input procedures, 189
opening for input, 187
parameters, 187
variable, 187
FOR, 75
FORWARD, 160
Forward declaration, 160
Formatting output, 18
Frequency counter, 137
FUNCTION, 148
Function recursion, 161
Functions, 23, 157
conversion, 26-27
miscellaneous, 26-27
of characters, 33
standard arithmetic, 26
Turbo Pascal additional, 31
trigonometric, 26-27

G

Global variables, 154
GOTO, 68

I

IF-ELSE puzzles, 62
IF-THEN, 50
IF-THEN-ELSE, 54
INPUT, 123
INSERT, 144
INTEGER, 6, 25
Intersection operator, 169

L

LABEL, 102, 121, 148
Link field, 259
Linked List, 258
building, 259
Demo, 264
declaration, 259
deleting nodes from, 281
reading, 261
reading from files, 269
searching, 271
storing in files, 268
List of records, 270
LN, 27
LONGINT, 25
Local variables, 154
Loops, 69
nested, 84
stepping up and down, 82
the FOR loop, 77
the REPEAT loop, 89
the WHILE loop, 85

M

MAXINT, 24
MAXLONGINT, 25
Matrix, 106
Modulo, 7

N

Named Constants, 14
NEW, 250, 294
Nested Conditions, 59
NIL, 259
Numeric data types, 24
Numeric types in Turbo Pascal, 24

O

Operator
*, 5-10, 21, 44, 171
+, 5-10, 21, 44, 171
–, 5-10, 21, 44, 171
/, 5-10, 21, 44, 171
:=, 12, 21, 171, 171
<, 40, 44, 171
<=, 40, 44, 171
<>, 40, 44, 171
=, 5-10, 40, 44, 171
>, 40, 44, 171
>=, 40, 44, 171
AND, 44, 47, 171
assignment, 12
DIV, 7-10, 21, 44, 171
difference, 168-169
IN, 165, 171
integer division, 7
intersection, 168-169
MOD, 7-10, 21, 171
modulo, 7
NOT, 44, 47, 171
OR, 44, 47, 171
real division, 5
union, 168, 169
Operators
arithmetic, 5, 9
binary, 9
logical, 40, 42, 171
precedence of, 44, 171
relational, 40, 171, 171
sets relational, 171
Turbo Pascal, 43
unary, 9
ORD, 33
Ordinal data types, 95
OUTPUT, 123

P

PACKED ARRAY OF CHAR, 104
Parameters, 150
actual, 150
formal, 150
passing by reference, 151
passing by value, 151
POS, 143
Pointer
field, 259
operations, 252
passing as parameters, 258
Pointers, 249, 250
to records, 255
PRED, 33
PROCEDURE, 148
Procedure
definition, 148
passing back values from, 152
passing values to, 150
PROGRAM, 1, 189
Program
enhancing modularity of, 234
heading, 1
Programs and subprograms, 147

R

RANDOM, 31
READ, 16, 127-128, 189, 214
READLN, 16, 124-125, 131, 189, 214
Reading
a file of text, 137
a line of text, 135
multiple strings, 195
REAL, 6, 26
RECORD, 174, 246
Record
accessing fields, 175
declaration, 174
fields, 180
nesting, 180
Records, 174
deleting from a file, 226
updating, 230
variant, 215
Recursion, 161
REPEAT, 89
RESET, 187, 189, 214
REWRITE, 197, 214
ROUND, 15

S

Scope of variables, 159
SET OF, 166
Searching a list, 271
Set
assignment, 165
declaration, 165
operators and operations, 168
rules and restrictions, 167
Sets, 165
SHORTINT, 25
SIN, 27
SINGLE, 26
SQR, 27-28
SQRT, 27
STRING, 38
Standard data types, 23
String
declaration of, 38
functions and procedures, 142
length of, 39
manipulation, 139
tips on input/output, 139
SUCC, 33
Subprogram section, 148
Subranges, 96

T

TEXT, 186
Text files, 186
closing, 188
creating, 197
displaying, 193
reading, 187
TRUE, 40
TRUNC, 15
TYPE, 100-102, 121, 148
Type conversion, 15
Types (see data types)
TYPE section, 100

U

Union operator, 169

V

VAR, 101-102, 121, 148
Variable
declaration, 10
indexed, 106
subscripted, 106
using, 10
Variant records, 215
Vector, 106

W

WHILE, 85
WITH, 177
WORD, 25
WRITE, 3, 197, 214
WRITELN, 3, 197, 214

X

XOR, 43-44, 47, 171


Table of Contents


Products |  Contact Us |  About Us |  Privacy  |  Ad Info  |  Home

Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc.
All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement.