Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this

Table Of Contents

1-1 Your First Pascal Program
Program Heading
Syntax and Conventions
1-2 Displaying Text: WRITELN, WRITE
1-3 Crunching Numbers
Integers and Real Numbers
Evaluation of Arithmetic Expressions
1-4 Using Variables
Variable Declaration
The Assignment Statement
1-5 Named Constants
g Named constants
1-6 Type Conversion: ROUND, TRUNC
1-7 Reading from the Keyboard: READLN, READ
1-8 Formatting Output
2-1 Standard Data Types and Functions
2-2 Numeric Data Types
Numeric Types in Turbo Pascal
2-3 Standard Arithmetic Functions
Standard Functions for Characters
Strings in Standard Pascal
2-5 The STRING Type
Declaration of a String
The Length of a String
2-6 The BOOLEAN Type
Simple Boolean Expressions
Compound Boolean Expressions
Turbo Pascal Operators
Precedence of Operators
3-1 Making Decisions
3-2 The Simple Decision: IF-THEN
Example: Pascal Credit Card
Using Blocks
3-3 The IF-THEN-ELSE Construct
3-4 The ELSE-IF Ladders
Example: A Character Tester
3-5 Nested Conditions
Example: Scores and Grades
Tips on the IF-ELSE Puzzles
3-6 The Multiple Choice: CASE
Example: A Vending Machine
Example: Number of Days in a Month
3-7 Unconditional Branching: GOTO
Repetition Loops
3-8 Turbo Pascal Features: EXIT, CASE-ELSE
4-1 Looping
Example: The Factorial
4-4 Nested Loops
4-5 The WHILE Loop
4-6 The REPEAT Loop
5-1 Ordinal Data Types
5-2 The TYPE Section
Renaming Types
Naming User-Defined Types
5-3 Arrays as Data Structures
5-4 One-Dimensional Arrays
Example: Scores of One Student
Displaying Tabulated Results
Declaration of Arrays in the TYPE Section
Example: Sorting an Array
5-5 Two-Dimensional Arrays
Example: Scores of Students
Array Initialization
6-1 Manipulating Text Data
6-2 Tips on OUTPUT Statements
6-3 Tips on INPUT Statements
Using READLN for Numeric Input
Using READ for Numeric Input
Using READ for Character Input
Using READLN for Character Input
Input of Mixed Types
Example: Scrambling Letters
6-4 Reading a Line of Text: EOLN
Example: Character Counter
6-5 Reading a File of Text: EOF
Example: Frequency Counter
6-6 String Manipulation
Tips on String Input/Output
Example: Sorting Names
6-7 String Functions and Procedures
Table 6-1 String functions and procedures
7-1 Programs and Subprograms
7-2 Procedures
Procedure Definition
Passing Values to Procedures
Passing Back Values from Procedures
7-3 Global and Local Variables
Example: Sorting Procedure
7-4 Functions
7-5 Tips on the Scope of Variables
7-6 Recursion
8-1 Sets
8-2 Set Declaration and Assignment
Rules and Restrictions
8-3 Set Operators and Operations
Tips on Using Set Operators
Relational Operators
Example: Text Analyzer
8-4 Records
Record Declaration
Accessing Fields
The WITH Statement
8-5 Nesting Records
9-1 Data Files
9-2 TEXT Files
9-3 Reading a TEXT File
File Variables
File Parameters
Opening a File for Input: RESET
Closing the File
File Input Procedures: READ, READLN
The EOF and EOLN Functions
Example: Disk-File Text Analyzer
9-4 Displaying a TEXT File
Reading a TEXT File as a Set of Strings
Reading Multiple Strings
9-5 Creating a TEXT File: REWRITE
File Output Procedures: WRITE, WRITELN
Example: Employee File
Example: Payroll
9-6 Non-TEXT Files
Example: Payroll System
Appending a File
9-7 Using the File Buffer Variable
Using Variant Records
10-1 Variant Records
10-2 Example: Enhanced Payroll System
10-3 Deleting Records from the File
10-4 Updating Records
10-5 Enhance the Program Modularity
11-1 Dynamic Memory Allocation
11-2 Pointers
Pointer Operations
Pointers to Records
Passing Pointers as Parameters
11-3 Basics of Linked Lists
List Declaration
Building a List
Reading a List
Example: A Linked List Demo
Storing Lists in Files
Reading Lists from Files
Example: A List of Records
11-4 Searching Lists
11-5 Deleting Nodes from Lists
The Next Step
0 of .
Results for:
No results containing your search query
P. 1
Learn Pascal in Three Days

Learn Pascal in Three Days

Ratings: (0)|Views: 26 |Likes:
Published by Spacecowboy2009

More info:

Published by: Spacecowboy2009 on Feb 23, 2012
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





You're Reading a Free Preview
Pages 7 to 34 are not shown in this preview.
You're Reading a Free Preview
Pages 41 to 74 are not shown in this preview.
You're Reading a Free Preview
Pages 81 to 207 are not shown in this preview.
You're Reading a Free Preview
Pages 214 to 262 are not shown in this preview.
You're Reading a Free Preview
Pages 269 to 336 are not shown in this preview.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->