Suchen und Finden
Service
Advanced Turbo C Programming
Keith Weiskamp
Verlag Elsevier Reference Monographs, 2014
ISBN 9781483265599 , 574 Seiten
Format PDF
Kopierschutz DRM
Front Cover
1
Advanced Turbo C Programming
4
Copyright Page
5
Table of Contents
6
Introduction
12
Who This Book Is For
12
How This Book Is Different
12
What about Standards?
13
What You'll Need
13
How This Book Is Organized
13
SECTION 1:
SECTION 1:
16
16
Chapter 1. Inside Turbo C: Standards and Features
18
Working Towards a New Standard
18
Function Prototypes
19
Prototypes with Variable Arguments
22
Using the void Type
24
Generic Pointers
25
Special Pointers
26
Function Modifiers
29
Using Nested Comments
32
Defining Constants and Volatiles
34
Enumerated Types
36
Turbo C Global Variables
36
A Look at Style
48
Summary
51
Chapter 2. Turbo C Programming Techniques
52
The C Preprocessor
52
Using the Preprocessor Directives
54
Conditional Compilation
64
Working with Command Line Arguments
65
The Common Interface
67
Tips on Memory Allocation and Pointers
70
Summary
79
SECTION 2:
SECTION 2:
80
80
Chapter 3. Data Structures: The Building Blocks
82
Building Static Lists
83
Building Dynamic Data Structures
90
The Singly Linked List
90
Creating the List Package
93
Defining the Operations
93
Storing Elements
98
Inserting and Deleting Elements
101
List Membership
112
Overview of the List Construction Program
113
Summary
125
Chapter 4. Developing Extended List Tools
126
Doubly Linked Lists
127
Modifying List Functions
128
Adding New Features
133
Inserting Elements in a Sorted List
136
Developing a String List Package
151
Using the String List Package
158
Stacks
171
Queues
176
Summary
177
Chapter 5. Advanced Data Structures
180
Binary Trees
180
Constructing a Binary Tree
184
Using the Tree Program
193
Building An Expression Evaluator
200
Building the Data Structures
201
Structure of the Program
203
Building the Expression Tree
204
Processing the Expression Tree
207
Using the Expression Tree Program
208
Summary
221
SECTION 3: I/O and File Handling
222
Chapter 6. Working With Stream I/O
224
A Quick Overview of the I/O System
225
A Look at the Stream I/O System
229
Using Stream I/O
233
Reading and Writing Strings
236
Mastering scanf and printf
239
Working with Files
247
Opening and Closing Files
248
A Look at Formatted I/O
261
Summary
265
Chapter 7. Advanced I/O Techniques
266
Reading and Writing Blocks of Data in Stream I/O
266
Developing a Database Program
268
Random Access Files with fseek
283
Controlling Stream Buffers
285
Redirecting Stream I/O
287
Console and Port I/O
290
Text Mode and Window Support
293
Displaying and Controlling Windows
299
Low-level I/O
300
Tips for Opening Low-Level Files
305
A Look at DOS Files
306
Reading and Writing with Low-Level I/O
307
Using the Low-Level Routines
308
Summary
314
SECTION 4:
SECTION 4:
316
316
Chapter 8. Opening the Window to the PC
318
A Quick Look at DOS and the ROM BIOS
318
Developing Video Tools
324
Working with Characters and Attributes
332
Developing a General Screen Package
337
Putting the Screen Package Together
345
Testing the Screen Package
353
Working with the Keyboard
356
A Quick Look at Sound
362
The ioutil.c Package
363
Summary
366
Chapter 9. Working with DOS Directories
368
The Turbo C Directory Tools
368
A File Reviewer
379
Summary
390
Chapter 10. Turbo C Graphics
392
BGI Quick Overview
392
Initializing and Using the Graphics System
400
Working with Drawing Commands
423
Summary
429
SECTION 5:
SECTION 5:
430
430
Chapter 11. Getting Started with Windows and Menus
432
Thinking about the User
433
Working with Windows
433
Developing Window Support Functions
436
Chapter 12. Developing the Pop-up Window Tools
468
Overview of the Pop-up Window Package
468
Creating the Window Functions
474
Overview of the Window Routines
498
Using the Window Routines
500
Status Bar Messages
508
Summary
510
Chapter 13. Developing Pop-Up Menus
512
Getting Started
512
Creating a Menu
518
The Complete Menu Package
531
Creating Pull-Down Menus
557
Summary
566
INDEX
568