- Shopping Bag ( 0 items )
For introductory courses in C Programming. Also for courses in Programming for Engineers, Programming for Business, and Programming for Technology.
The Deitels' 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 introduces fundamentals of structured programming, and covers relevant features of C language’s C-201X standard. It also includes an updated treatment of C++ for those who want to transition to object-oriented concepts. Finally, new material on security is added to this edition.
A Operator Precedence Charts 919
B ASCII Character Set 923
C Number Systems 924
C.1 Introduction 925
C.2 Abbreviating Binary Numbers as Octal and Hexadecimal Numbers 928
C.3 Converting Octal and Hexadecimal Numbers to Binary Numbers 929
C.4 Converting from Binary, Octal or Hexadecimal to Decimal 929
C.5 Converting from Decimal to Binary, Octal or Hexadecimal 930
C.6 Negative Binary Numbers: Two’s Complement Notation 932
D Game Programming: Solving Sudoku 937
D.1 Introduction 937
D.2 Deitel Sudoku Resource Center 938
D.3 Solution Strategies 938
D.4 Programming Sudoku Puzzle Solvers 942
D.5 Generating New Sudoku Puzzles 943
D.6 Conclusion 945
Appendices on the Web 946
Appendices E through I are PDF documents posted online at the book’s Companion Website (located at www.pearsonhighered.com/deitel).
E Game Programming with the Allegro C Library I
E.1 Introduction II
E.2 Installing Allegro II
E.3 A Simple Allegro Program III
E.4 Simple Graphics: Importing Bitmaps and Blitting IV
E.5 Animation with Double Buffering IX
E.6 Importing and Playing Sounds XVI
E.7 Keyboard Input XX
E.8 Fonts and Displaying Text XXV
E.9 Implementing the Game of Pong XXXI
E.10 Timers in Allegro XXXVII
E.11 The Grabber and Allegro Datafiles XLII
E.12 Other Allegro Capabilities LI
E.13 Allegro Resource Center LII
F Sorting: A Deeper Look LVIII
F.1 Introduction LIX
F.2 Big O Notation LIX
F.3 Selection Sort LX
F.4 Insertion Sort LXIV
F.5 Merge Sort LXVII
G Introduction to C99 LXXVIII
G.1 Introduction LXXIX
G.2 Support for C99 LXXIX
G.3 New C99 Headers LXXX
G.4 // Comments LXXX
G.5 Mixing Declarations and Executable Code LXXXI
G.6 Declaring a Variable in a for Statement Header LXXXII
G.7 Designated Initializers and Compound Literals LXXXIV
G.8 Type bool LXXXVII
G.9 Implicit int in Function Declarations LXXXVIII
G.10 Complex Numbers LXXXIX
G.11 Variable-Length Arrays XC
G.12 The snprintf Function: Helping Avoid Hacker Attacks XCIII
G.13 Additions to the Preprocessor XCV
G.14 Other C99 Features XCVI
G.15 Web Resources XCIX
H Using the Visual Studio Debugger CIV
H.1 Introduction CV
H.2 Breakpoints and the Continue Command CV
H.3 Locals and Watch Windows CIX
H.4 Controlling Execution Using the Step Into, Step Over, Step Out and Continue Commands CXII
H.5 Autos Window CXIV
H.6 Wrap-Up CXVI
I Using the GNU Debugger CXVIII
I.1 Introduction CXIX
I.2 Breakpoints and the run, stop, continue and print Commands CXIX
I.3 print and set Commands CXXIV
I.4 Controlling Execution Using the step, finish and next Commands CXXVI
I.5 watch Command CXXVIII
I.6 Wrap-Up CXXX
Posted January 12, 2000
The book does not start off well at all. The author provides examples in the beginning of chapter 2 that do not even compile, because the #include <stdio.h> line is missing from all the examples. Of course, the void material is put into play in an example of integer addition & subtraction later in chapter 2. In short, the book fails in many areas of learning C in the manner it was intended by Kernighan & Ritchie. Take some good advice, purchase the 'Joy of C' if you want a book that is better suited for the beginning programmer (opinion-is-allowable).
1 out of 2 people found this review helpful.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted January 21, 2002
The book is really easy to understand. It is straight forward and to the point. Most of all technical terminology is defined for the beginner. I especially appreciate the fact that the authors have mentioned that they have tried to present C in such a way to be the first computer language for beginners, despite in traditional terms, Pascal being taught as the first programming language because of it's known structured programming discipline. In my lower years of education, I have had experiences with QBasic and a little of Visual Basic. However, as a student, I would think that skipping Pascal is a plus since I tend to ask myself, 'When am I ever going to use it in life...' Students tend to question the applicable use of something that is learned. These days, Pascal is seldom used as C++ predominantly takes the stage. In sum, learning C as a foundation and first language seems to be something that will pay off. This book also includes tips and points out common pitfalls such as common programming errors, good programming practices, performance tips, and software engineering observations, which are all really helpful. If you are new to programming, this book is a must.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted October 9, 2001
I read this book 'C How To Program 3rd Ed'. Programmers say its easy to learn Visual Basic, but its easy to learn any rogramming language as long as it is 'Deiteled'. One, this book is three in one, that is it covers three programming languages in one book and in a fashion that a beginner/professional will find it very easy to read and understand. The book introduces you to C language it then detail the language with full examples and it will finish by showing you how C++ join in to this journey, it will detail again using examples that make you quickly grasp the language, finally Java will join and again the book shows you how you use what you have or dont have to Java your world. Two, in any of the covered languages it takes you to a point where you can link/connect those languages, so if you want just know about C++ and never touched C the book has a bridge already you will end up knowing both, the same for any combination of the three languages. If you just glance on chapters 3, 15 and 25 you will get an ideal of what are those bridges am I talking about. I personally liked the book because it explained clearly the foundation one needs to know to use any of the three languages, when you finish C or C++ or Java in this book and make your own program using say Java, its no gonna be a surprised to you to be able to make the same program using any of the three languages but a BIG surprise for someone who never used this book but just one day saw you reading a chapter about Java on this book. The book has made learning programming much easier and faster. I found examples are carefully designed to also be used as a good studying tool, you can also start from these examples (together with the explanations in the book) to build big professional programs. Finally I dont see the reason why the book should not be used as a reference since it has all the syntax explanations, keywords in all those three languages, quick examples showing how to use programming statements, advantages and disadvante of some operators etc.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted July 16, 2001
I think your book on programming is great! I have used it over and over again to answer questions as I move into learning Visual C++ and Java. The thinking skills I developed to successfully complete a class using this text are helpful all over in programming. But, I have a small problem. As I have used the book so much as a reference, it is starting to fall apart. Is there a way to get a hard-bound edition?Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted August 6, 2001
I have set about learning to program in C to create course ware in my field, which is language and literature. The Deitels' book is without doubt the best book for learning C that I have found. This is saying a lot because I have bought five or six and reviewed those currently available. It is well-organized, absolutely clear, thorough and takes the reader in orderly progression from basic to difficult concepts. Unlike so many books, it explains every line of code which it uses as illustrations. This is an extremely important feature which makes the difference between comprehension and confusion. How many books have we all seen in the computing field which first give an abstract explanation and then use an example that makes use of even more advanced and as yet unexplained concepts! I will even go one step further in praise of this book: it could serve as model in pedagogy for books in other fields. In addition to a concept by concept approach in numbered paragraphs in the main body of the text, at the end of each chapter it summarizes the principal points, important terms, common programming errors, and good programming practices. Self-review exercises, answers and programming exercises follow. The appendices contain up-to-date web references, operator precedence charts, the ascii character set and number systems. The appendix on numbers goes beyond the usual inadequate coverage and explains, for example, how a binary negative number is formed and why it works. The authors are fully aware aware of the advances represented by object-oriented programming based on C and hence dedicate the second half of the book to C++ and Java and do the same masterful job they did with C. Though often overlooked in reviews, it is important to note that it is printed on excellent, semi-glossy paper that does not allow ink and highlighting to come through to the next page. Prentice-Hall has gone to the extra expense of using a combination of red and black ink with different sizes and styles of type and occasional pale red background. Though it may impress the reader as cosmetic, it certainly is not: it plays the very important role of improving learning and retention by making important points and sections stand out. I hesitate to make suggestions for future editions when the authors have done such an excelltent job, but I'm going to throw in a couple: include a chart of the new ISO character set and issue the book in hardcopy as well as soft, because this book should be considered not only a text but a reference volume which the reader will want to have on his shelf for a long time to come. As it is, the paper covers tend to curl up which shortens its life and makes shelving difficult. In conclusion, this text is not only excellent in itself but because it fills the void between 'academic' texts, which are often written to show colleages how clever we are, and commercial 'how-tos', often dumbed down, incomplete and short on conceptualization. I can confidently recommend this book to the general public and as a text book. If it is not adopted as the text for introductory courses in C, it will be for reasons other than its excellence as a teaching instrument and as a treatise on C.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted February 24, 2001
I've bought many different C programming books, but this is the most complete book I've found. Each chapter contains many tips for better programming techniques, avoiding common errors, improving programming speed and helping ensure your programs are portable. Many complete examples demonstate each subject, rather than small snipets of code commonly found in other programming books. At the end of each chapter there are lots of questions to get you to try out what you have just learned. Only half of these give answers, encouraging you to work it out for yourself. This helps improve self-study techniques and keeps the reader interested. The most important aspect of this book, though, is how it explains 'Top-down, step-wise' program design. This is one of the most important aspects of structured programming, however, many other books don't even mention this. It is obvious this book was written by programming teachers, not just programmers, because so much emphisis is placed on learning proper programming techniques.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted January 15, 2001
I'm not sure who this book is written for, but, in my opinion, certainly not for C programmers. Not only do I view usage of language elements often wrong, advice that I interpret to the effect of 'avoid standard C usage' is liberally sprinkled throughout the text. e.g. don't embed function calls inside of other program elements 'it's only confusing' ! I think that this might possibly as a text for a course taught by a non-C programmer to students who are never going to use C (or C++ or java). But I would never choose it for a course that I taughtWas this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted December 23, 2000
This was my class textbook this semester. Thanks to it, I will get an A for the course. It brought me from C zero to C hero in three months.<BR><BR> This book is great. It will hit you with many different levels of detail. The chapters are written with such clarity, you only need to read each chapter once to understand its key concepts. Key concepts, warnings, and tips are listed twice for each chapter -- once in the back, and once in the text. I wish the ...For Dummies books did that -- listing the tips at the end of each chapter makes referencing a breeze.<BR><BR> Each sample program is explained line by line, so that you can understand how programs execute, the order of operations, precedence... etc. After about four chapters you shouldn't have trouble tracing through your programs! Their sample code is easy to read and examples build on each other. It gave me more and more confidence as I progressed through each example.<BR><BR> The sample code is written exceptionally well! The authors' style is extremely easy to read, and is extremely consistent throughout the book. It shows these guys really understand the algorithms they are coding and are REALLY comfortable with C syntax. <BR><BR> The practice problems for each chapter range from Mickey-Mouse to Really Tough! You'll get the appropriate theory, feature detail, and numerous sample programs to help work your way throught each problem -- no matter the difficulty. (except the Tower of Hanoi -- HOLY COW IT'S HARD)<BR><BR> This book deserves *****. This book will make you feel smart. Also, this book will never get in your way as these programming books often do.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted October 30, 2000
The book makes C programming simple. You will be able to write a program and understand pointers much quicker than in any other book due to its great examples and illustrations.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted March 30, 2000
There are many things I like about this book. It stands as an example of how to write a programming text. It adheres to the principle, 'Tell 'em what you're going to tell 'em, then tell 'em, then tell 'em what you've told 'em.' Each chapter begins with a list of objectives and an outline, and ends with a summary and compilations of principles outlined in the chapter ( 'Common Programming Errors', 'Good Programming Practices', 'Portability Tips', 'Performance Tips' 'Software Engineering Observations'). At the end of each chapter is a set of self-review short exercises with answers, and a set of longer exercises that range in complexity from writing short blocks of code to writing complete programs (e.g. Knight's tour). Fine points of C syntax are each illustrated with short programs. (One of the other reviewers mentioned that some of the programs in chapter 2 omit some header includes, causing compilation failure. This seems to only happen for the very first couple of examples, and is discussed in section 2.3. I guess the other reviewer was using a very strict compiler. ) The writing style is clear and easy to follow (but not simplisitic or chatty). The material is laid out in a logical way. Where appropriate, diagrams and tables are included. It's a comprehensive book. It seems that every time I had a question about some potentially tricky area, I could find a discussion somewhere in the book. The last third of the book is on C++. Where C and C++ have language elements in common, these are described in the C part of the book. The C++ section describes the additional features of C++ over C, and contrasts differences in functionality between superficially similar (but different) language elements. The approach here is to regard C++ as a superset of a large part of C, as opposed to describing C++ as a language in its own right without reference to C as an ancestor. This approach works well if you are coming to C++ from C as I did. There are 5 appendices, which serve as useful reference material on C, including language syntax and standard library functions. One omission is that there isn't a corresponding guide to the C++ libraries. So you need another C++ book when you start programming in C++ in earnest. The book is well made. The pages sit reasonably flat, except near the start and the end of the book (although the spine crack has helped with that ;-)) The paper has some sheen, but not too much glare comes back. The sheen prevents highlighter ink from seeping through to the other side of the page. The paper is sturdy too, and resists dog-earing. There are 1 inch margins around the text which I like for making pencil annotations. The book stands well on a bookshelf, without flopping over if unsupported. It's a very well made book, but not quite as well made as O'Reilly's, which I regard as the current benchmark in paperback construction. I have found very few typos. It seems that many books these days come out full of bad hyphenations, mis-spellings, poor placements and so on. Deitel^2's book has been well edited and proofread. Occasionally, some figures are printed a couple of pages on from the referring text. This is a little awkward, but I can see why they did it. There are many figures illustrating well-structured code, so these are necessarily large, and need to be placed in sequence. In summary: a great book for learning C from scratch, or for going from novice to professional, or for going from C to intermediate C++. For full competency in C++, you'll need to get another book later.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted April 11, 2012
No text was provided for this review.