Tải bản đầy đủ (.pdf) (7 trang)

c by example chua xac dinh 444

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (76.4 KB, 7 trang )


Cover
Contents at A Glance
Table of Contents
Introduction
I Welcome to C
1 What C Is All About
2 Analyzing C Programs
3 Variables and Constants
4 Introduction to Arrays
5 Preprocessor Directives
6 Input and Output
II C's Operators
7 Operators and Precedence
8 Relational and Logical Operators
9 Remaining C Operators
III Controlling Your Program's Execution
10 The while Loop
11 The for Loop


12 Controlling Flow
IV Variable Scope and Structuring Code
13 Introduction to C Functions
14 Variable Scope and Structuring Code
15 Passing Values between Functions
16 Returning Function Values
V Standard Input, Output, and Intrinsic
Functions
17 Device and Character I/O
18 String and Numeric Functions


VI Building Blocks
19 Working with Arrays
20 Pointer Storage
21 Using Pointers
VII Advanced C
22 Introduction to Structures
23 Arrays of Structures
24 Simple C File Processing
25 Putting It All Together


VIII Appendixes
A Memory Addressing, Binary, and
Hexadecimal
B C's Precedence Table
C ASCII Table
Glossary
Index



disk, where they are called records. When
you read a record from disk, you generally
read that record into a structure variable a
process it with your program.

Unlike some other programming languages
not all C-read disk data has to be stored in
record format. Typically, you write a strea
of characters to a disk file and access that

data either sequentially or randomly by
reading it into variables and structures.

The process of randomly accessing data in
file is simple. Consider the data files of a
large credit card organization. When you
make a purchase, the store calls the credit
card company to get an authorization.
Millions of names are in the credit card


company's files. There is no quick way the
credit card company could read every
record sequentially from the disk that com
before yours. Sequential files do not lend
themselves to quick access. In many
situations, looking up individual records i
a data file with sequential access is not
feasible.



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×