
C++ by Example
"UnderC" Learning Edition
Steve Donovan(Author)
Que Corporation,U.S. (Publisher)
Published on 18. December 2001
Book
Mixed media product
408 pages
978-0-7897-2676-6 (ISBN)
Description
C++ by Example includes 'UnderC,' an open-source language interpreter developed by the author, which shows the result of each new programming technique instantly, allowing novices to experiment in a more dynamic learning environment. The book starts with the fundamentals of the language, including expressions, variables, functions, and definitions and then covers the most common C++ features including
Organizing data with Arrays
Standard Algorithms and Containers
Using Libraries within C++ programs
Going beyond Arrays with Structures
Using Pointers
Manipulating data using Operators The second half of the book covers OOP, including Classes, Inheritance, Encapsulation, and more. The final chapters include useful command and library references and appendices covering the preprocessor and freeware C++ compilers.
Organizing data with Arrays
Standard Algorithms and Containers
Using Libraries within C++ programs
Going beyond Arrays with Structures
Using Pointers
Manipulating data using Operators The second half of the book covers OOP, including Classes, Inheritance, Encapsulation, and more. The final chapters include useful command and library references and appendices covering the preprocessor and freeware C++ compilers.
More details
Language
English
Place of publication
United States
Publishing group
Pearson Education (US)
Target group
College/higher education
Dimensions
Height: 232 mm
Width: 187 mm
Thickness: 23 mm
Weight
698 gr
ISBN-13
978-0-7897-2676-6 (9780789726766)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Person
Steve Donovan has been programming most of his life, mostly scientific and engineering applications. He did graduate work in nuclear physics and taught college physics for three years, which taught him the importance of language in learning science.
He has been with the Mining Research labs of CSIR South Africa for the past 10 years, primarily working with geophysical and geotechnical applications in Windows, in everything from Pascal to Assembler. C++ has been his tool of choice for five years, and he tries not to argue with Java and Visual Basic programmers.
Steve has developed the UnderC C++ interpreter to make life easier both for beginners and for experts who are tired of the compile-link-go cycle. Steve has released UnderC as open source, in the hope that someone else will debug it. He is not considered a gifted drawer of icons.
He has been with the Mining Research labs of CSIR South Africa for the past 10 years, primarily working with geophysical and geotechnical applications in Windows, in everything from Pascal to Assembler. C++ has been his tool of choice for five years, and he tries not to argue with Java and Visual Basic programmers.
Steve has developed the UnderC C++ interpreter to make life easier both for beginners and for experts who are tired of the compile-link-go cycle. Steve has released UnderC as open source, in the hope that someone else will debug it. He is not considered a gifted drawer of icons.
Content
Introduction.
I. C++ FUNDAMENTALS.
1. Expressions and Variables.
Using C++ as a Calculator. Numerical Types. Variables. Constants: const and enum. Operators and Shortcuts. Strings. Input and Output. What's Next?
2. Functions and Control Statements.
Defining Your Own Functions. Control Statements. Scope. Case Study: A Bug and Defect Tracking System. What's Next?
3. Arrays and Algorithms.
Arrays. Containers. Iterators. Case Study: Calculating Simple Statistics. Case Study: Histograms. What's Next?
4. Programs and Libraries.
Header Files. Programs. Namespaces. Defensive Programming. Case Study: A Reverse-Polish Calculator. What's Next?
5. Structures and Pointers.
User-Defined Structures. Passing structs to Functions. Arrays of Structures. Pointers. Case Study: The Bug Tracking Program Revisited. What's Next?
6. Overloading Functions and Operators.
Default Values for Parameters. Overloading Functions. Overloading Operators. Recursion. Function Pointers. Case Study: Drawing Shapes with Turtle Graphics. What's Next?
II. OBJECT ORIENTED C++.
7. Classes.
Member Functions. The Idea of Encapsulation. Constructors and Destructors. Operators as Methods. Interfaces and Implementations. Case Study: Wrapping a Class for Downloading Web Pages. What's Next?
8. Inheritance and Virtual Methods.
The Idea of Inheritance. Polymorphism. Code Reuse. Case Study: The Drawing Program Revisited. What's Next?
9. Copying, Initialization, and Assignment.
Copying. The Life of Objects. Case Study: A Resizable Array. Case Study: Writing XML/HTML. What's Next?
10. Templates.
Generic Functions. Functions That Operate on Any Sequence. Class Templates. Case Study: Smart Pointers. What's Next?
III. APPENDICES.
Appendix A. UnderC for Windows (UCW) Command Reference.
Loading and Running Programs. Setting Breakpoints. Inspecting Values. Using Quincy 2000.
Appendix B. A Short Library Reference.
The Library. The C++ Standard string Class. C++ Standard Containers: list and vector. C++ Standard Algorithms: . Numerical Operations. C Library Functions. Yet Another Windows Library.
Appendix C. The C++ Preprocessor.
Preprocessing Programs. Macros. Conditional Compilation.
Appendix D. Compiling C++ Programs and DLLs with GCC and BCC32.
Getting Free Compilers. The Compilation Process: Compile, Link, Go. Building a YAWL Application. Linking a DLL into UCW. Building a DLL with GCC. A Simple Makefile. Using Compiler Extensions.
Index.
I. C++ FUNDAMENTALS.
1. Expressions and Variables.
Using C++ as a Calculator. Numerical Types. Variables. Constants: const and enum. Operators and Shortcuts. Strings. Input and Output. What's Next?
2. Functions and Control Statements.
Defining Your Own Functions. Control Statements. Scope. Case Study: A Bug and Defect Tracking System. What's Next?
3. Arrays and Algorithms.
Arrays. Containers. Iterators. Case Study: Calculating Simple Statistics. Case Study: Histograms. What's Next?
4. Programs and Libraries.
Header Files. Programs. Namespaces. Defensive Programming. Case Study: A Reverse-Polish Calculator. What's Next?
5. Structures and Pointers.
User-Defined Structures. Passing structs to Functions. Arrays of Structures. Pointers. Case Study: The Bug Tracking Program Revisited. What's Next?
6. Overloading Functions and Operators.
Default Values for Parameters. Overloading Functions. Overloading Operators. Recursion. Function Pointers. Case Study: Drawing Shapes with Turtle Graphics. What's Next?
II. OBJECT ORIENTED C++.
7. Classes.
Member Functions. The Idea of Encapsulation. Constructors and Destructors. Operators as Methods. Interfaces and Implementations. Case Study: Wrapping a Class for Downloading Web Pages. What's Next?
8. Inheritance and Virtual Methods.
The Idea of Inheritance. Polymorphism. Code Reuse. Case Study: The Drawing Program Revisited. What's Next?
9. Copying, Initialization, and Assignment.
Copying. The Life of Objects. Case Study: A Resizable Array. Case Study: Writing XML/HTML. What's Next?
10. Templates.
Generic Functions. Functions That Operate on Any Sequence. Class Templates. Case Study: Smart Pointers. What's Next?
III. APPENDICES.
Appendix A. UnderC for Windows (UCW) Command Reference.
Loading and Running Programs. Setting Breakpoints. Inspecting Values. Using Quincy 2000.
Appendix B. A Short Library Reference.
The Library. The C++ Standard string Class. C++ Standard Containers: list and vector. C++ Standard Algorithms: . Numerical Operations. C Library Functions. Yet Another Windows Library.
Appendix C. The C++ Preprocessor.
Preprocessing Programs. Macros. Conditional Compilation.
Appendix D. Compiling C++ Programs and DLLs with GCC and BCC32.
Getting Free Compilers. The Compilation Process: Compile, Link, Go. Building a YAWL Application. Linking a DLL into UCW. Building a DLL with GCC. A Simple Makefile. Using Compiler Extensions.
Index.