Teach Yourself C in 24 Hours (2nd ed.) [Zhang 2000-02-28].pdf
(
3297 KB
)
Pobierz
Teach Yourself
C
in
24
Hours
Tony Zhang
SECOND EDITION
201 West 103rd St., Indianapolis, Indiana, 46290 USA
Sams Teach Yourself C in 24 Hours,
Second Edition
Copyright ©2000 by Sams Publishing
All rights reserved. No part of this book shall be reproduced, stored in a
retrieval system, or transmitted by any means, electronic, mechanical, photo-
copying, recording, or otherwise, without written permission from the pub-
lisher. No patent liability is assumed with respect to the use of the information
contained herein. Although every precaution has been taken in the preparation
of this book, the publisher and author assume no responsibility for errors or
omissions. Nor is any liability assumed for damages resulting from the use of
the information contained herein.
A
SSOCIATE
P
UBLISHER
Michael Stephens
A
CQUISITIONS
E
DITOR
Carol Ackerman
D
EVELOPMENT
E
DITOR
Gus A. Miklos
M
ANAGING
E
DITOR
Charlotte Clapp
P
ROJECT
E
DITOR
Andy Beaster
C
OPY
E
DITOR
Kate Givens
I
NDEXERS
Christine Nelsen
Deborah Hittel
P
ROOFREADER
Candice Hightower
T
ECHNICAL
E
DITOR
Bill Mitchell
T
EAM
C
OORDINATOR
Pamalee Nelson
I
NTERIOR
D
ESIGNER
Gary Adair
C
OVER
D
ESIGNER
Aren Howell
C
OPYWRITER
Eric Borgert
E
DITORIAL
A
SSISTANT
Angela Boley
P
RODUCTION
Stacey DeRome
Mark Walchle
International Standard Book Number: 0-672-31861-x
Library of Congress Catalog Card Number: 99-067311
Printed in the United States of America
First Printing: February, 2000
05 04 03
6 5 4 3
Trademarks
All terms mentioned in this book that are known to be trademarks or service
marks have been appropriately capitalized. Sams Publishing cannot attest to the
accuracy of this information. Use of a term in this book should not be regarded
as affecting the validity of any trademark or service mark.
Warning and Disclaimer
Every effort has been made to make this book as complete and as accurate as
possible, but no warranty or fitness is implied. The information provided is on
an “as is” basis. The author and the publisher shall have neither liability nor
responsibility to any person or entity with respect to any loss or damages aris-
ing from the information contained in this book.
Contents at a Glance
Introduction
1
Part I The Basics of C
9
Hour 1
Taking the First Step
11
2
Writing Your First C Program
27
3
Learning the Structure of a C Program
41
4
Understanding Data Types and Keywords
55
5
Handling Standard Input and Output
71
Part II Operators and Control-flow Statements
89
Hour 6
Manipulating Data
91
7
Working with Loops
105
8
Using Conditional Operators
121
9
Working with Data Modifiers and Math Functions
141
10
Controlling Program Flow
155
Part III Pointers and Arrays
173
Hour 11
Understanding Pointers
175
12
Understanding Arrays
189
13
Manipulating Strings
207
14
Understanding Scope and Storage Classes
223
Part IV Functions and Dynamic Memory Allocation
241
Hour 15
Working with Functions
243
16
Applying Pointers
259
17
Allocating Memory
279
18
Using Special Data Types and Functions
295
Part V Structure, Union, File I/O, and More
311
Hour 19
Understanding Structures
313
20
Understanding Unions
333
21
Reading and Writing with Files
355
22
Using Special File Functions
373
23
Compiling Programs: The C Preprocessor
391
24
Where Do You Go from Here?
409
Part VI Appendixes
437
Appendix A
ANSI Standard Header Files
439
B
Answers to Quiz Questions and Exercises
441
Index
503
Plik z chomika:
musli_com
Inne pliki z tego folderu:
A Book on C_ Programming in C (4th ed.) [Kelley & Pohl 1998-01-08].pdf
(48528 KB)
Advanced C and C Compiling [Stevanovic 2014-04-28].pdf
(29765 KB)
Embedded C Programming and the Atmel AVR (2nd ed.) [Barnett, Cox & O'Cull 2006-06-05].pdf
(82508 KB)
Beginning C for Arduino_ Learn C Programming for the Arduino and Compatible Microcontrollers [Purdum 2012-12-03].pdf
(28335 KB)
21st Century C [Klemens 2012-11-05].pdf
(7370 KB)
Inne foldery tego chomika:
3D Design - Programming
ActionScript
Actionscript - Flash - Flex - Air
Ada
ADO
Zgłoś jeśli
naruszono regulamin