Introduction to C++
This textbook teaches students to program in C++, even if they have no prior knowledge of programming. Perfect for a first course in programming at any level, Heller explains the principles of programming, then illustrates each of them in the context of a realistic, simple, program.
- Paperback | 480 pages
- 189.2 x 235.5 x 30.7mm | 995.29g
- 12 May 1997
- ELSEVIER SCIENCE & TECHNOLOGY
- Morgan Kaufmann Publishers In
- San Francisco, United States
About Steve Heller
Steve Heller has been a professional programmer for about 25 years, and is the President of Chrysalis Software Corporation, a consulting firm specializing in high-performance software, and practical, down-to-earth instructional materials. He is the author of two excellent books, Efficient C/C++ Programming and Who's Afraid of C++?.
Table of contents
Introduction to Programming: What is a Program? How Do We Write a Program? Hardware Fundamentals: Disk. RAM. The CPU. Binary and Hexadecimal. Assembly Language in Brief. Basics of Programming: What a CompilerIs and How it Works. Some Fundamental Data Types. Simple Input and Output. Controlling the Flow of Execution. A Complete Sample Program to Find the Highest Weight. More Basics: Extending the Sample Program. Vectors. A Simple Sorting Algorithm. Evena Small Change to a Program Can Cause Difficulties. Functional Literacy: Why We Need Functions. An Example: Adding up the Elements of a Vector. How Arguments Work. Storage Classes: Automatic and Static. The Stack. Local and Global Scopes. TakingInventory: User Defined Date Types: Why and How. C++ is a Language Kit, Not a Finished Language. Constructors and Reference Arguments. An Example: Keeping Stock for a Small Store. Class Scope. Strings Attached: Pointers and Memory Allocation. Newand Delete. More Constructors. A Destructor. The Assignment Operator. More about References. Access Specifiers: Public and Private. Arrays vs. Vectors. More Strings: Sorting Strings. More Operators. The Subtleties of Comparison. Convenient I/O. Member Functions and Friends. Back to the Store: Dated Inventory. Inheritance vs. Copying. Overriding Inherited Functions. Arrays of Class Objects. Pretty Poly: The Limits of Inheritance with Objects. Polymorphism as a Solution. Polymorphism as aProblem. Flexibility with Less Risk: Polymorphic Objects. An Example: Mixing Dated and Undated Inventory Objects. Software Engineering and Reuse: Someone Else Will Have to Read and Modify Your Code. How to Reduce the Costs of Maintenance through Proper Design and Implementation. Software is an Art, and Always Will Be.