005.13’3/k.p.
Pascal For Students
R Kemp
Contents
Introduction
Section 1: Pre-defined simple types and control structures
First steps
Some simple programs
Constructing a program
Program errors and debugging
Program testing
Comparisons and characters
Arithmetic comparisons
Boolean variables and functions
Two programs using Boolean variables
characters
Repetition
The repeat statement
The while statement
Developing a program
The for statement
Use of eoln and eof in repetition statements
Conditional execution and transfers
The if statement
The case statement
The goto statement
Data validation
Subprograms
Functions
Procedures
Value and variable parameters
Further features of subprograms
Section 2: Structured and enumerated data types
Arrays
Arrays of scalars
Sorting and searching
Manipulating complete arrays
Arrays of arrays
User-defined values, subranges and record structures
Enumerated types
Subranges
Records
Arrays of records
Record variants
Files
Defining a sequential file
Initialising and writing to a file
Reading from a file
File update
Textfiles
Input and output
Pointer structures
Lists and pointers
Ordered lists
Recursion revisited
Binary search trees
Other pointer structures
Set structures and tackling a larger problem
Sets
Getting it together
Prep./ Fatma Essam
Manage./ Huda Hosny
ساحة النقاش