Teach Yourself C in 21 Days (6th ed.) [Jones & Aitken 2002-10-05].pdf
(
3610 KB
)
Pobierz
Bradley L. Jones and
Peter Aitken
Teach Yourself
C
in
21
Days
SIXTH EDITION
800 East 96th St., Indianapolis, Indiana, 46240 USA
Sams Teach Yourself C in 21 Days,
Sixth Edition
Copyright © 2003 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. Neither is any liability assumed for damages resulting from the use
of the information contained herein.
International Standard Book Number: 0-672-32448-2
Library of Congress Catalog Number: 2002106120
Printed in the United States of America
First Printing: September 2002
06 05 04
6
5
4 3
A
SSOCIATE
P
UBLISHER
Michael Stephens
M
ANAGING
E
DITOR
Charlotte Clapp
P
ROJECT
E
DITORS
Elizabeth Finney
Katelyn Cozatt
I
NDEXER
Bruce Clingaman
Lisa Wilson
P
ROOFREADER
Abby VanHuss
T
ECHNICAL
E
DITOR
Mark Cashman
T
EAM
C
OORDINATOR
Lynne Williams
I
NTERIOR
D
ESIGN
Gary Adair
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 servicemark.
C
OVER
D
ESIGN
Aren Howell
L
AYOUT
T
ECHNICIAN
Juli Cook
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 authors 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 or from the use of the CD or
programs accompanying it.
Bulk Sales
Sams Publishing offers excellent discounts on this book when ordered in quan-
tity for bulk purchases or special sales. For more information, please contact
U.S. Corporate and Government Sales
1-800-382-3419
corpsales@pearsontechgroup.com
For sales outside of the U.S., please contact
International Sales
1-317-428-3341
international@pearsontechgroup.com
Contents at a Glance
Introduction
Week 1 At a Glance
Day 1
2
3
4
5
6
7
Getting Started with C
Type and Run 1
The Components of a C Program
Storing Information: Variables and Constants
Statements, Expressions, and Operators
Type and Run 2
Functions: The Basics
Controlling Your Program’s Order of Execution
Fundamentals of Reading and Writing Information
1
5
7
25
29
41
59
93
97
123
147
167
173
175
195
219
223
249
285
305
309
337
377
385
387
439
475
Week 1 In Review
Week 2 At a Glance
8
9
10
11
12
13
14
Using Numeric Arrays
Understanding Pointers
Type and Run 3
Working with Characters and Strings
Implementing Structures, Unions, and TypeDefs
Understanding Variable Scope
Type and Run 4
Advanced Program Control
Working with the Screen, Printer, and Keyboard
Week 2 In Review
Week 3 At a Glance
15
16
Pointers: Beyond the Basics
Using Disk Files
Type and Run 5
17
18
19
20
21
Manipulating Strings
Getting More from Functions
Exploring the C Function Library
Type and Run 6
Working with Memory
Advanced Compiler Use
481
515
533
561
565
593
619
627
629
649
665
703
723
743
765
781
Week 3 In Review
Bonus Week at a Glance
Bonus Day 1
Bonus Day 2
Bonus Day 3
Bonus Day 4
Bonus Day 5
Bonus Day 6
Bonus Day 7
Objected-Oriented Programming Languages
The C++ Programming Language
Working with C++ Classes and Objects
The Java Programming Language
Programming Java Applets
Building a Java Applet
The C# Programming Languages
Bonus Week in Review
Appendixes
A
B
C
D
E
F
G
ASCII Character Chart
C/C++ Reserved Words
Working with Binary and Hexadecimal Numbers
Portability Issues
Common C Functions
Answers
Getting Started with Dev-C++
783
789
793
797
823
829
881
893
Index
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