Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Standard view
Full view
of .
×

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-8 Formatting Output
Summary
Exercises
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
Example: A Character Tester
3-5 Nested Conditions
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
Enumerations
Subranges
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
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
LENGTH
CONCAT
COPY
DELETE
INSERT
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
Union
Intersection
Difference
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
File Variables
File Parameters
Opening a File for Input: RESET
Closing the File
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
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
Suggestions
11-1 Dynamic Memory Allocation
11-2 Pointers
Pointer Operations
Pointers to Records
Passing Pointers as Parameters
List Declaration
Building a List
Storing Lists in Files
Example: A List of Records
11-4 Searching Lists
11-5 Deleting Nodes from Lists
The Next Step
Index
0 of .
Results for:
P. 1
38475020-Pascal

# 38475020-Pascal

Ratings: (0)|Views: 1,783|Likes:

### Availability:

See More
See less

11/08/2011

pdf

text

original

Pages 7 to 34 are not shown in this preview.
Pages 41 to 74 are not shown in this preview.
Pages 81 to 207 are not shown in this preview.