Programming: Principles and Practice Using C++, 2nd Edition

Programming is the art of expressing solutions to problems so that a computer can execute those solutions. Much of the effort in programming is spent finding and refining solutions. Often, a problem is only fully understood through the process of programming a solution for it.

This book is for someone who has never programmed before but is willing to work hard to learn. It helps you understand the principles and acquire the practical skills of programming using the C++ programming language. My aim is for you to gain sufficient knowledge and experience to perform simple useful programming tasks using the best up-to-date techniques. How long will that take? As part of a first-year university course, you can work through this book in a semester (assuming that you have a workload of four courses of average difficulty). If you work by yourself, don’t expect to spend less time than that (maybe 15 hours a week for 14 weeks).

Three months may seem a long time, but there’s a lot to learn and you’ll be writing your first simple programs after about an hour. Also, all learning is gradual: each chapter introduces new useful concepts and illustrates them with examples inspired by real-world uses. Your ability to express ideas in code — getting a computer to do what you want it to do — gradually and steadily increases as you go along. I never say, “Learn a month’s worth of theory and then see if you can use it.”

Why would you want to program? Our civilization runs on software. Without understanding software you are reduced to believing in “magic” and will be locked out of many of the most interesting, profitable, and socially useful technical fields of work. When I talk about programming, I think of the whole spectrum of computer programs from personal computer applications with GUIs (graphical user interfaces), through engineering calculations and embedded systems control applications (such as digital cameras, cars, and cell phones), to text manipulation applications as found in many humanities and business applications. Like mathematics, programming — when done well — is a valuable intellectual exercise that sharpens our ability to think. However, thanks to feedback from the computer, programming is more concrete than most forms of math, and therefore accessible to more people. It is a way to reach out and change the world – ideally for the better. Finally, programming can be great fun.

Why C++? You can’t learn to program without a programming language, and C++ directly supports the key concepts and techniques used in real-world software. C++ is one of the most widely used programming languages, found in an unsurpassed range of application areas. You find C++ applications everywhere from the bottom of the oceans to the surface of Mars. C++ is precisely and comprehensively defined by a nonproprietary international standard. Quality and/or free implementations are available on every kind of computer. Most of the programming concepts that you will learn using C++ can be used directly in other languages, such as C, C#, Fortran, and Java. Finally, I simply like C++ as a language for writing elegant and efficient code.

This is not the easiest book on beginning programming; it is not meant to be. I just aim for it to be the easiest book from which you can learn the basics of real-world programming. That’s quite an ambitious goal because much modern software relies on techniques considered advanced just a few years ago.


Chapter 0. Notes to the Reader
Chapter 1. Computers, People, and Programming

Part I. The Basics
Chapter 2. Hello, World!
Chapter 3. Objects, Types, and Values
Chapter 4. Computation
Chapter 5. Errors
Chapter 6. Writing a Program
Chapter 7. Completing a Program
Chapter 8. Technicalities: Functions, etc.
Chapter 9. Technicalities: Classes, etc.

Part II. Input and Output
Chapter 10. Input and Output Streams
Chapter 11. Customizing Input and Output
Chapter 12. A Display Model
Chapter 13. Graphics Classes
Chapter 14. Graphics Class Design
Chapter 15. Graphing Functions and Data
Chapter 16. Graphical User Interfaces

Part III. Data and Algorithms
Chapter 17. Vector and Free Store
Chapter 18. Vectors and Arrays
Chapter 19. Vector, Templates, and Exceptions
Chapter 20. Containers and Iterators
Chapter 21. Algorithms and Maps

Part IV. Broadening the View
Chapter 22. Ideals and History
Chapter 23. Text Manipulation
Chapter 24. Numerics
Chapter 25. Embedded Systems Programming
Chapter 26. Testing
Chapter 27. The C Programming Language

Part V. Appendices
Appendix A. Language Summary
Appendix B. Standard Library Summary
Appendix C. Getting Started with Visual Studio
Appendix D. Installing FLTK
Appendix E. GUI Implementation

Formato:  epub, pdf Comprimido:  rar Peso:  193.37 MB Lenguaje:  Inglés

Sin comentarios.

Deja tu Comentario