Skip to:Content
|
Bottom
Cover image for C : how to program
Title:
C : how to program
Personal Author:
Edition:
5th ed.
Publication Information:
Petaling Jaya, Selangor Darul Ehsan, Malaysia : Pearson/Prentice Hall, 2004
Physical Description:
xxxii, 1130 p, : ill, : 23 cm.
ISBN:
9780132404167
Added Author:

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010166774 QA76.73.C15 D44 2007 Open Access Book Book
Searching...

On Order

Summary

Summary

For introductory courses in C Programming. Also for courses in Programming for Engineers, Programming for Business, and Programming for Technology. The Deitels' groundbreaking How to Program series offers unparalleled breadth and depth of object-oriented programming concepts and intermediate-level topics for further study. Using the Deitels' signature Live-Code Approach, this complete, authoritative introduction to C programming offers strong treatment of structured algorithm and program development in ANSI/ISO C with 150 working C programs. Includes rich, 300-page treatment of object-oriented programming in C++ that helps students interpret the code more effectively.


Author Notes

Dr. Harvey Deitel is one of the world's leading computer science instructors and seminar presenters, and author of more than a dozen books. He worked on the pioneering operating system teams in industry and academia that developed many of the techniques at the heart of operating systems like UNIX®, Windows NT(tm) and OS/2(tm).

Paul Deitel has taught Visual Basic, Java, C and C++ at numerous hardware and software companies, including Sun Microsystems, Digital Equipment Corporation, IBM, Open Environment Corporation, Adra Systems, and Cambridge Technology Partners, and is himself an expert developer.

The Deitels are principals of Deitel & Associates, Inc., an international training organization specializing in Visual Basic, Java, C and C++, and object technologies.


Table of Contents

Prefacep. xxi
1 Introduction to Computers, the Internet and theWebp. 1
Introductionp. 2
What Is a Computer?p. 4
Computer Organizationp. 4
Early Operating Systemsp. 5
Personal, Distributed and Client/Server Computingp. 6
Machine Languages, Assembly Languages and High-Level Languagesp. 6
Fortran, COBOL, Pascal and Adap. 8
History of Cp. 8
C Standard Libraryp. 9
C++p. 10
Javap. 11
BASIC, Visual Basic, Visual C++, Visual C# and .NETp. 11
Key Software Trend: Object Technologyp. 12
Typical C Program Development Environmentp. 13
Hardware Trendsp. 16
History of the Internetp. 16
History of the World Wide Webp. 18
Notes About C and This Bookp. 18
Web Resourcesp. 19
2 Introduction to C Programmingp. 32
Introductionp. 33
A Simple C Program: Printing a Line of Textp. 33
Another Simple C Program: Adding Two Integersp. 37
Memory Conceptsp. 42
Arithmetic in Cp. 43
Decision Making: Equality and Relational Operatorsp. 47
3 Structured Program Development in Cp. 62
Introductionp. 63
Algorithmsp. 63
Contentsp. x
Contents
Pseudocodep. 64
Control Structuresp. 64
The if Selection Statementp. 66
The ifelse Selection Statementp. 68
The while Repetition Statementp. 71
Formulating Algorithms
Case Study 1 Counter-Controlled Repetitionp. 72
Formulating Algorithms with Top-Down, Stepwise Refinement
Case Study 2 Sentinel-Controlled Repetitionp. 75
Formulating Algorithms with Top-Down, Stepwise Refinement
Case Study 3 Nested Control Structuresp. 81
Assignment Operatorsp. 85
Increment and Decrement Operatorsp. 85
4 C Program Controlp. 107
Introductionp. 108
Repetition Essentialsp. 108
Counter-Controlled Repetitionp. 109
for Repetition Statementp. 111
for Statement: Notes and Observationsp. 113
Examples Using the for Statementp. 114
switch Multiple-Selection Statementp. 118
dowhile Repetition Statementp. 124
break and continue Statementsp. 126
Logical Operatorsp. 128
Confusing Equality (==) and Assignment (=) Operatorsp. 130
Structured Programming Summaryp. 132
5 C Functionsp. 151
Introductionp. 152
Progra
Go to:Top of Page