Pascal for Students (including Turbo Pascal) ( 3 )

Publication series :3

Author: Kemp   Ray;Hahn   Brian  

Publisher: Elsevier Science‎

Publication year: 1995

E-ISBN: 9780080928708

P-ISBN(Paperback): 9780340645888

P-ISBN(Hardback):  9780340645888

Subject: TP312 程序语言、算法语言

Language: ENG

Access to resources Favorite

Disclaimer: Any content in publications that violate the sovereignty, the constitution or regulations of the PRC is not accepted or approved by CNPIEC.

Description

The third edition of this best-selling text has been revised to present a more problem oriented approach to learning Pascal, without substantially changing the original popular style of previous editions. With additional material on Turbo Pascal extensions to the standard Pascal, including binary files and graphics, it continues to provide an introduction which is as suitable for the programming novice as for those familiar with other computer languages.

Chapter

1.2 Constructing a program

1.3 Program errors and debugging

1.4 Program testing

Summary

Solutions to quick quizzes

Exercises

Chapter 2. Comparisons and characters

Introduction

2.1 Arithmetic comparisons

2.2 Boolean variables and functions

2.3 Two programs using Boolean variables

2.4 Characters

Summary

Solutions to quick quizzes

Exercises

Chapter 3. Repetition

Introduction

3.1 The repeat statement

3.2 The whi Ie statement

3.3 Developing a program

3.4 The for statement

3.5 Use of eoln and eofin repetition statements

Summary

Solutions to quick quizzes

Exercises

Chapter 4. Conditional execution and transfers

Introduction

4.1 The if statement

4.2 The case statement

4.3 The goto statement

4.4 Data validation

Summary

Solutions to quick quizzes

Exercises

Chapter 5. Subprograms

Introduction

5.1 Functions

5.2 Procedures

5.3 Value and variable parameters

5.4 Further features of subprograms#

Summary

Solutions to quick quizzes

Exercises

Section 2: Structured and enumerated data types

Chapter 6. Arrays

Introduction

6.1 Arrays of scalars

6.2 Sorting and searching

6.3 Manipulating complete arrays

6.4 Arrays of arrays

Summary

Exercises

Chapter 7. User-defined values, subranges and record structures

Introduction

7.1 Enumerated types

7.2 Subrange

7.3 Records

7.4 Arrays of records

7.5 Record variants#

Summary

Exercises

Chapter 8. Files

Introduction

8.1 Defining a sequential file

8.2 Initialising and writing to a file

8.3 Reading from a file

8.4 File update

8.5 Textfiles

8.6 Input and output

Summary

Exercises

Chapter 9. Pointer structures

Introduction

9.1 Lists and pointers

9.2 Ordered lists

9.3 Recursion revisited

9.4 Binary search trees

9.5 Other pointer structures

Summary

Exercises

Chapter 10. Set structures and tackling a larger problem

Introduction

10.1 Sets

10.2 Getting it together

Summary

Exercises

Section 3: Turbo Pascal

Chapter 11. General Turbo Pascal extensions and exceptions

11.1 General syntax

11.2 Types

11.3 String type

11.4 Expressions

11.5 Standard input and output

11.6 Statements

11.7 Procedures and functions

11.8 Memory matters

11.9 Units

11.10 The system unit

11.11 The crt unit

11.12 The dos unit

11.13 Compiler directives

Summary

Chapter 12. Turbo Pascal files

12.1 Text files

12.2 Random access with typed files

12.3 Untyped files

12.4 Device files

Summary

Chapter 13. Turbo Pascal graphics

13.1 Some basics

13.2 myworld: a world coordinate graphics unit

13.3 Fractals

13.4 Some other graphics goodies

Summary

Exercises

Section 4: Mathematical applications of Turbo Pascal

Chapter 14. Simulation

14.1 Random number generation

14.2 Spinning coins

14.3 Rolling dice

14.4 A random walk

14.5 Traffic flow

Summary

Exercises

Chapter 15. Matrices and their applications

15.1 Matrices

15.2 Reachability of spies

15.3 Leslie matrices: population growth

15.4 Markov chains

15.5 Solution of linear equations

Summary

Exercises

Chapter 16. Introduction to numerical methods

16.1 Equations

16.2 Integration

16.3 Numerical differentiation

16.4 First-order differential equations

16.5 Runge-Kutta methods

16.6 A differential equation modelling package

16.7 Partial differential equations: a tridiagonal system

Summary

Exercises

Appendices

A: Syntax diagrams for Pascal

B: Reserved words and required identifiers

C: Required functions and procedures

D: Turbo Pascal functions and procedures

D.1 system unit

D.2 crt unit

D.3 dos unit

D.4 graph unit

E: Common codes

F: Portability

G: Glossary

Index

The users who browse this book also browse


No browse record.