Résumé
The Waite Group's C Primer Plus, Third edition presents the ANSI C standard beginning with a discussion of the fundamentals of C programming and then continues on to illustrate real-world C programming concepts and techniques. The Waite Group's C Primer Plus, Third Edition, is jam-packed with hundreds of sample programs, challenging yet humorous examples, hints and quizzes. Get the latest information on migrating from C to C++ and find out what will change with the release of the new C ANSI/ISO standard (available the end of 1998- beginning 1999.) Learn the mechanics of C programming and how to create programs that are easy to read, debug and update using real-world, easy to follow examples.
Table of Contents
1. Getting Ready.
Whence C? Why C? Whither C? Using C: Seven Steps.
Programming Mechanics. Language Standards. Some
Conventions. Chapter Summary. Review Questions. Programming
Exercise.
2. Introducing C.
A Simple Sample of C. The Explanation. The Structure of a
Simple Program. Tips on Making Your Programs Readable.
Taking Another Step. While You're at It...Multiple
Functions. Debugging. Keywords. Chapter Summary. Review
Questions. Programming Exercises.
3. Data and C.
A Sample Program. Data Variables and Constants. Data:
Data-Type Keywords. C Data Types. Using Data Types.
Arguments and Pitfalls. One More Example. Chapter Summary.
Review Questions. Programming Exercises.
4. Character Strings and Formatted
Input/Output.
Introductory Program. Character Strings: An Introduction.
Constants and the C Preprocessor. Exploring and Exploiting
printf() and scanf(). Usage Tips. Chapter Summary. Review
Questions. Programming Exercises.
5. Operators, Expressions, and
Statements.
Introducing Loops. Fundamental Operators. Precedence and
the Order of Evaluation. Some Additional Operators.
Expressions and Statements. Type Conversions. Function with
Arguments. A Sample Program. Chapter Summary. Review
Questions. Programming Exercises.
6. C Control Statements: Looping.
An Initial Example. The while Statement. Which Is Bigger:
UsingRelational Operators and Expressions. Indefinite Loops
and Counting Loops. The for Loop. More Assignment
Operators: +=, -=, *=, /=, %=. The Comma Operator. An
Exit-Condition Loop: do while. Which Loop? Nested Loops.
Arrays. A Loop Example Using a Function Return Value.
Program Discussion. Chapter Summary. Review Questions.
Programming Exercises.
7. C Control Statements: Branching and
Jumps.
The if Statement. Adding else to the if Statement. Let's
Get Logical. A Word-Count Program. The Conditional
Operator: ?. Loop Aids: continue and break. Multiple
Choice: switch and break. The goto Statement. Chapter
Summary. Review Questions. Programming Exercises.
8. Character Input/Output and
Redirection.
Single-Character I/O: getchar() and putchar(). Buffers.
Terminating Keyboard Input. Redirection and Files. A
Graphic Example. Creating a Friendlier User Interface.
Character Sketches. Menu Browsing. Chapter Summary. Review
Questions. Programming Exercises.
9. Functions.
Review. ANSI C Function Prototyping. Recursion. All C
Functions Are Created Equal. Compiling Programs with Two or
More Functions. Finding Addresses: The & Operator.
Altering Variables in the Calling Function. Pointers: A
First Look. Chapter Summary. Review Questions. Programming
Exercises.
10. Arrays and Pointers.
Arrays. Pointers to Arrays. Functions, Arrays, and
Pointers. Pointer Operations. Protecting Array Contents.
Multidimensional Arrays. Pointers and Multidimensional
Arrays. Planning a Program. Chapter Summary. Review
Questions. Programming Exercises.
11. Character Strings and String
Functions.
Defining Strings Within a Program. Character String Arrays
and Initialization. String Input. String Output. The
Do-It-Yourself Option. String Functions. A String Example:
Sorting Strings. The ctype.h Character Functions and
Strings. Command-Line Arguments. String to Number
Conversions. Chapter Summary. Review Questions. Programming
Exercises.
12. File Input/Output.
Communicating with Files. What Is a File? Standard I/O. A
Simple-Minded File-Condensing Program. File I/O: fprintf(),
fscanf(), fgets(), and fputs(). Adventures in Random
Access: fseek() and ftell(). Behind the Scenes with
Standard I/O. Other Standard I/O Functions. Chapter
Summary. Review Questions. Programming Exercises.
13. Storage Classes and Program
Development.
Storage Classes and Scope. A Random Number Function. Roll
'Em. Sorting Numbers. ANSI C Type Qualifiers. Chapter
Summary. Review Questions. Programming Exercises.
14. Structures and Other Data
Forms.
Sample Problem: Creating an Inventory of Books. Setting Up
the Structure Declaration. Defining a Structure Variable.
Gaining Access to Structure Members. Arrays of Structures.
Nested Structures. Pointers to Structures. Telling
Functions About Structures. Saving the Structure Contents
in a File. Structures: What Next? Unions: A Quick Look.
typedef: A Quick Look. Fancy Declarations. Functions and
Pointers. Chapter Summary. Review Questions. Programming
Exercises.
15. Bit Fiddling.
Binary Numbers, Bits, and Bytes. Other Bases. C's Bitwise
Operators. Bit Fields. Chapter Summary. Review Questions.
Programming Exercises.
16. The C Preprocessor and the C
Library.
Manifest Constants: #define. Using Arguments with #define.
Macro or Function? File Inclusion: #include. Other
Directives. Enumerated Types. The C Library. The Math
Library. The General Utilities Library. The Assert Library.
Chapter Summary. Review Questions. Programming
Exercises.
17. Advanced Data Representation.
Exploring Data Representation. Beyond the Array to the
Linked List. Abstract Data Types (ADTs). Getting Queued
with an ADT. Simulating with a Queue. The Linked List
Versus the Array. Binary Search Trees. Other Directions.
Chapter Summary. Review Questions. Programming
Exercises.
Appendix A. Additional Reading.
C Language. Programming. Reference.
Appendix B. C Operators.
Arithmetic Operators. Relational Operators. Assignment
Operators. Logical Operators. The Conditional Operator.
Pointer-Related Operators. Sign Operators. Structure and
Union Operators. Bitwise Operators. Miscellaneous
Operators.
Appendix C. Basic Types and Storage
Classes.
Summary: The Basic Data Types. Summary: How to Declare a
Simple Variable. Summary: Qualifiers.
Appendix D. Expressions, Statements, and Program
Flow.
Summary: Expressions and Statements. Summary: The while
Statement. Summary: The for Statement. Summary: The do
while Statement. Summary: Using if Statements for Making
Choices. Summary: Multiple Choice with switch. Summary:
Program Jumps.
Appendix E. The ASCII Character
Set.
Appendix F. The Standard ANSI C
Library.
Diagnostics: assert.h. Character Handling: ctype.h.
Localization: locale.h. Math Library: math.h. Non-Local
Jumps: setjmp.h. Signal Handling: signal.h. Variable
Arguments: stdarg.h. Standard I/O Library: stdio.h. General
Utilities: stdlib.h. String Handling: string.h. Date and
Time: time.h.
Appendix G. Differences Between C and
C++.
Declarations. Function Prototypes. Function Definitions.
Comments. char Constants. The const Modifier. Structures
and Unions. Enumerations. Pointer Type-Checking.
Appendix H. The C9X Committee.
Types. Enhanced Computational Support. Wide Character
Support.
Appendix I. Answers to the Review
Questions.
Index.
L'auteur - Stephen Prata
is a professor of physics and astronomy at the College
of Marin in Kentfield, California, where he teaches
astronomy, physics, and programming. He received his B.S.
from the California Institute of Technology and his Ph.D.
from the University of California, Berkeley. His
association with computers began with the computer modeling
of star clusters. Stephen has authored or coauthored over a
dozen books for The Waite Group, including New C Primer
Plus and Certified Course in Visual
Basic4.
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Sams |
Auteur(s) | Stephen Prata |
Parution | 25/10/2001 |
Édition | 4eme édition |
Nb. de pages | 932 |
Format | 18,5 x 23 |
Couverture | Broché |
Poids | 1541g |
Intérieur | Noir et Blanc |
EAN13 | 9780672322228 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse
- Informatique Développement d'applications Techniques de programmation Structures de données
- Informatique Développement d'applications Algorithmique et informatique appliquée Initiation à l'algorithmique et la programmation
- Informatique Développement d'applications Programmation UNIX / Linux C sous Unix
- Informatique Développement d'applications Langages C