Muutke küpsiste eelistusi

Discover Pascal in Delphi [Pehme köide]

  • Formaat: Paperback / softback, 480 pages, kõrgus x laius x paksus: 235x173x24 mm, kaal: 800 g
  • Ilmumisaeg: 22-Nov-2001
  • Kirjastus: Addison Wesley
  • ISBN-10: 0201709198
  • ISBN-13: 9780201709193
  • Pehme köide
  • Hind: 112,59 €*
  • * saadame teile pakkumise kasutatud raamatule, mille hind võib erineda kodulehel olevast hinnast
  • See raamat on trükist otsas, kuid me saadame teile pakkumise kasutatud raamatule.
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 480 pages, kõrgus x laius x paksus: 235x173x24 mm, kaal: 800 g
  • Ilmumisaeg: 22-Nov-2001
  • Kirjastus: Addison Wesley
  • ISBN-10: 0201709198
  • ISBN-13: 9780201709193
Suitable for the novice programmer, Discover Pascal in Delphi provides a complete and user-friendly introduction to programming in Pascal with the accessible prize-winning programming environment - Delphi.  Written to complement the author sprevious book, Discover Delphi, it puts more emphasis on the Pascal language, whilst keeping the enjoyment and fun of programming in the Delphi environment to the fore. With the aim of teaching the student how to write good, readable code, the authors cover all of the programming fundamentals, before moving on to show how to develop database applications using Delphi components, and other more advanced topics.  Comprehensive appendices show how to use Delphi to produce professional Graphical User Interfaces (GUIs), and also summarise the main Pascal constructs for easy reference. Based on successful courses given by the authors, Discover Pascal in Delphi is an ideal text for novice programmers, and particularly suiting scientists and engineers who wish to learn programming skills in a sympathetic environment.
Preface xv
Introduction to Object Pascal and the Delphi environment
1(15)
Introduction
1(1)
Object Pascal
2(1)
The Delphi environment and its components
2(1)
Components
3(1)
Event-driven programming
4(1)
A first program
5(8)
Review of code in Listing 1.1
13(1)
Summary
14(2)
Exercises
14(2)
Arithmetic
16(30)
A program using simple arithmetic
17(6)
The problem
17(1)
The interface
17(1)
The program
18(4)
Review of the code
22(1)
Identifiers, reserved words and special symbols
23(5)
Identifiers
23(1)
Reserved words
24(1)
Special symbols
25(1)
Variables
25(1)
Types
25(1)
Declarations
26(1)
Constants
27(1)
Assignment
28(1)
Operators with more than one meaning
28(1)
Integer operators
29(1)
Strings and numbers
29(2)
Doubling program
31(4)
The problem
31(1)
The interface
31(1)
The program
31(3)
Review of the code
34(1)
Alarms program
35(5)
The problem
35(1)
The interface
35(1)
The program
36(3)
Review of the code
39(1)
Pick a letter program
40(4)
The problem
40(1)
The interface
40(1)
The program
40(3)
Review of the code
43(1)
Summary
44(2)
Exercises
44(2)
Conditionals
46(30)
Yes or no
46(1)
One thing or another
47(1)
Simple example using conditionals
47(6)
The interface
47(1)
The program
47(6)
Review of the code
53(1)
Relational operators
53(4)
Boolean operators
54(1)
Review of code using and
55(1)
Review of code using or
55(2)
General form of if statements
57(1)
Improving Alarms program
57(1)
Nesting conditionals
58(9)
The interface
58(1)
The program
58(5)
Review of translator code
63(2)
An alternative program
65(2)
Case statements
67(2)
General form of a case statement
68(1)
Checking a date for validity
69(2)
The interface
69(1)
The program
69(2)
Review of the code
71(1)
Summary
71(5)
Exercises
71(2)
Listing
73(3)
Counted loops
76(28)
A multiplication program
76(3)
Multiplication table
76(1)
The interface
76(1)
The program
76(3)
Review of the code
79(1)
The for construct
79(1)
Laying out code
80(1)
Example of loops with integer counts
80(8)
The interface
80(1)
Initialization
81(1)
A simple loop
81(1)
Loops with literals and expressions
82(1)
A loop containing a conditional
83(2)
Nested loops
85(1)
Efficient alternative
86(2)
Ordinal types
88(1)
Counted loops controlled by characters
89(1)
Downto
90(1)
Ten green bottles
91(2)
The design
91(1)
The program
92(1)
Summary
93(11)
Exercises
93(1)
Listings
94(10)
Real numbers
104(27)
Real
105(1)
Strings and real numbers
105(1)
An example program -volume and surface area of a box
105(4)
The problem
106(1)
The design
106(1)
Variables
106(1)
The interface
107(1)
The program
107(1)
Review of the code
108(1)
Arithmetic and real numbers
109(2)
Real numbers in logical expressions
111(1)
Real numbers in counted loops
112(1)
Unit-wide constants
112(2)
Milk bottles program
114(3)
The problem
114(1)
The design
114(1)
Declarations
115(1)
The interface
115(1)
The program
116(1)
Review of the code
117(1)
Unit-wide variables
117(1)
Random
118(1)
Example program - higher or lower
119(4)
The problem
119(1)
The design
119(1)
Variables
120(1)
The interface
120(1)
The program
120(2)
Review of the code
122(1)
Other useful functions
123(1)
Summary
123(8)
Exercises
124(1)
Listings
124(7)
Arrays
131(36)
The inbuilt type string
131(1)
First hangman program
132(5)
Interface design
132(1)
Code design
132(2)
The program
134(2)
Review of the code
136(1)
Arrays of characters
137(1)
New version of hangman using arrays
138(2)
Review of the code
140(1)
Arrays of numbers
140(2)
Using an array of floating-point numbers to solve a puzzle
142(4)
Interface design
142(1)
Data structure design
143(1)
Pseudocode
143(1)
The program
144(1)
Review of the code
145(1)
Using a two-dimensional array to solve the chessboard puzzle
146(2)
Pseudocode
146(1)
The program
146(1)
Review of the code
147(1)
Files and arrays
148(4)
Interface design
148(1)
Pseudocode
148(1)
Data file
148(2)
The program
150(1)
Review of the code
151(1)
Summary
152(15)
Exercises
152(1)
Listings
153(14)
Procedures
167(24)
ShowMessage
167(2)
Procedures without parameters
169(2)
Example of parameterless procedures
169(2)
Review of the code
171(1)
Parameterless procedures and Memo boxes
171(2)
The form
172(1)
Procedure Thanks
172(1)
Procedure Face
172(1)
Unit-wide declarations
173(1)
Review of the rest of the code
173(1)
Procedures with constant parameters
173(3)
Procedure declaration with one parameter
173(2)
Multiple parameters
175(1)
Functions
176(2)
Inbuilt functions
176(1)
Programmer-defined functions
176(1)
Multiple parameters
177(1)
Variable parameters
178(1)
Multiple parameters
179(1)
Parameters of different types
179(1)
Sorting
180(4)
The problem
181(1)
The design
181(1)
Types and variables
181(1)
The procedure
182(2)
Summary
184(7)
Exercises
184(1)
Listings
185(6)
Scope
191(39)
Variables and constant scope
192(4)
The interface
192(1)
The program
192(2)
Review of the code
194(2)
Local declarations and unit-wide identifiers
196(1)
Components
196(4)
Review of the code
197(1)
Using the with keyword
198(2)
The Object Inspector
200(2)
Review of the code
201(1)
Using an array of shapes
202(4)
The problem
202(1)
Interface design
202(1)
Program design
202(1)
The program
202(3)
Review of the code
205(1)
Writing to files
206(2)
The interface
206(1)
Review of the code
207(1)
Procedures
208(2)
Nested procedures
210(1)
More about sorting
211(2)
The problem
211(1)
Interface design
212(1)
Program design
212(1)
The program
212(1)
Review of the code
213(1)
Summary
213(17)
Exercises
213(1)
Listings
214(16)
More looping structures
230(24)
The repeat construct
230(2)
The repeat construct and a prize distribution problem
232(3)
Code design
233(1)
Interface design
233(1)
Review of data file and code
234(1)
End-of-file conditions
235(2)
Review of the code
236(1)
The while construct
237(1)
Counting characters by using a while construct
237(1)
Review of the code
237(1)
Distributing prizes again
238(2)
Review of the code
239(1)
Non-deterministic loops and arrays
240(3)
Interface design
240(1)
Pseudocode
241(1)
The program
241(2)
Review of the code
243(1)
Summary
243(11)
Exercises
244(2)
Listings
246(8)
Databases
254(26)
Database Desktop
255(3)
Simple databases
255(3)
Review of basic Database Desktop facilities
258(1)
SQL
258(1)
Relational databases
259(1)
Delphi and the Database Form Wizard
260(6)
Review of inventory database project
264(2)
Pascal with databases
266(2)
Review of the code
268(1)
Creating forms for data entry
268(3)
Review of the code
270(1)
Calculations from databases
271(2)
Summary
273(7)
Exercises
273(1)
Listings
274(6)
Records
280(32)
A simple record type for an auction
281(1)
A record type for weather readings
282(1)
An example using records for weather data
283(7)
Interface details
283(2)
Program details
285(3)
Review of the code
288(1)
Further uses of the with construct
289(1)
Arrays of records
290(1)
Extending the weather program
291(1)
Code design
291(1)
An inbuilt record type
292(1)
Binary files
293(1)
Drawing a star
294(2)
The program
294(1)
The theory of drawing the star
295(1)
Summary
296(16)
Exercises
297(1)
Listings
298(14)
Advanced procedures and related concepts
312(30)
Value parameters
313(1)
Uninitialized variables and out parameters
314(1)
Subrange types and Low and High
315(2)
Open array parameters
317(1)
Dynamic arrays
318(3)
Sorter
321(3)
Interface design
321(1)
Data structure design
322(1)
Pseudocode
322(1)
The program
322(2)
Review of the code
324(1)
Inheritance
324(2)
Moving form
326(2)
Interface design
326(1)
Data structure design
327(1)
Pseudocode
327(1)
The program
327(1)
Review of the code
327(1)
Event-handling procedures
328(2)
Name entry
330(4)
Interface design
330(1)
Data structure design
330(1)
Pseudocode
331(1)
Testing
331(1)
The program
332(1)
Review of the code
333(1)
Summary
334(8)
Exercises
334(1)
Listings
335(7)
Multiple units and forms
342(34)
Compiling, building and running
343(1)
Math unit
343(6)
Double and Extended types
344(1)
Register
345(1)
Using the SumOfSquares function
345(1)
Problem
345(1)
The interface
346(1)
The design
346(1)
Types and variables
346(1)
The program
347(1)
Review of the code
348(1)
Uses Math
348(1)
Programmer-defined units
349(6)
Frequency
349(1)
Programmer-defined unit
349(3)
Extending the programmer-defined unit
352(3)
Using MyMathUnit
355(3)
The problem
355(1)
The user interface
355(1)
Types and variables
355(1)
Code design
355(1)
The program
356(1)
Review of the code
357(1)
Additional forms
358(3)
The problem
358(1)
The user interfaces
359(1)
Variable
359(1)
The program
360(1)
Review of the code
361(1)
Multiple units and forms
361(3)
The problem
361(1)
The interface
361(1)
The program
362(2)
Review of the code
364(1)
Summary
364(12)
Exercises
364(1)
Listings
365(11)
Final example
376(39)
Interface design
377(1)
Top-down design for main event handler
377(2)
Coding ands testing from the top down
379(3)
Review of code for main event handler
382(1)
Coding and testing from the top down, continued
382(1)
Coding and testing from the bottom up
383(1)
Further details of interface design
384(2)
Top-down coding and testing, continued
386(1)
Review of the code
387(1)
Computer attempts to win
387(5)
Review of code for HasFinished
392(1)
Computer attempts to win, continued
393(4)
Finishing touches
397(3)
Summary
400(15)
Exercises
400(1)
Listings
401(14)
Appendix A The Object Inspector 415(19)
A.1 The Object Inspector window
415(1)
A.2 Setting properties of a form
416(2)
A.2.1 Review
417(1)
A.3 Setting properties of components on a form
418(1)
A.3.1 The interface
418(1)
A.3.2 The program
418(1)
A.3.3 Review
419(1)
A.3.4 Warning
419(1)
A.4 Events
419(1)
A.5 Line drawing
420(2)
A.5.1 Interface
420(1)
A.5.2 The program
420(1)
A.5.3 Review of the code
421(1)
A.5.4 Warning
422(1)
A.5.5 Sharing event handlers
422(1)
A.6 Line drawing extended
422(6)
A.6.1 The interface
423(1)
A.6.2 Review of the interface
423(1)
A.6.3 The program
424(1)
A.6.4 Adding a main menu
425(2)
A.6.5 Review of the code
427(1)
A.6.6 Review of the form
428(1)
A.7 Summary
428(6)
Listings
429(5)
Appendix B Introduction to Windows 95 onwards including NT 434(9)
B.1 Windows
435(1)
B.2 Windows Explorer and file management
436(2)
B.3 Using other programs and copying text
438(2)
B.4 Floppy discs
440(1)
B.4.1 Formatting a floppy disc
441(1)
B.5 Removable zip discs and rewritable CDs
441(1)
B.6 Shutting down a computer
441(1)
B.7 Important warnings
441(1)
B.8 Running programs
442(1)
B.9 Summary
442(1)
Appendix C Pascal constructs 443(8)
C.1 General
443(1)
C.2 Commonly used types
444(1)
C.3 Conditional constructs
444(1)
C.4 Looping constructs
445(1)
C.5 Procedure and function headers
446(1)
C.6 Using procedures and functions
446(1)
C.7 Defining user types
447(1)
C.8 Using user types
448(1)
C.9 Units
448(1)
C.10 List of operators
449(1)
C.11 Commonly used functions
450(1)
Appendix D Glossary 451(6)
Index 457


Sue Walmsley is a Senior Scientific Officer in Computer Science at the University of Reading.  Shirley Williams is a Senior Lecturer in Computer Science at the University of Reading.  She has recently spent a sabbatical year working at Vodafone, using Pascal and Delphi to solve large real world problems.