C++ Programming/TOC1
This page is brought to you by Wikimedia Laboratories
A single page version with all chapters is available (attention to its size). (edit)
About the book [ edit ]
If you have questions related to C++ that are not addressed on the book, ask at the Q&A.
Getting Started [ edit ] [ edit summary ] [ print chapter ]
- Introducing C++
- Programming languages
- Programming Paradigms - the versatility of C++ as a multi-paradigm language, concepts of Object-Oriented Programming (Objects and Classes, Inheritance, Polymorphism).
- Comparisons - to other languages, relation to other computer science constructs and idioms.
- with C
- with Java
- with C#
- with Managed C++ (C++/CLI)
- Code
- File Organization - implementation and declaration files (.cpp/.h).
- Statements - program control flow and statement blocks.
- Coding Style Conventions
- Documentation
Fundamentals [ edit ] [ edit summary ] [ print chapter ]
- Compiler
- Introduction, list of recognized keywords and its directives (inline, static, etc...).
- Preprocessor
- includes the standard headers. - Linker

- Preprocessor
- Internal storage of data types - bits and bytes, data versus variables, two's complement, endian and floating point.
- Variables - Introduction (declaration, assignment, scope and visibility), primitive types, enumeration with source examples.
- Scope - with source examples.
- Operators - precedence order and composition, , assignment, sizeof, new, delete, [] (arrays), * (pointers), & (references) and brief mention of operator overloading.
- Logical - the && (and), || (or), and ! (not) Operators.
- Conditional - the ?: Operator.
- Type casting - Automatic, explicit and advanced type casts.
- Flow of control - Conditionals (if, if-else, switch), loop iterations (while, do-while, for) and goto.
- Functions - Introduction (including main()), argument passing, returning values, recursive functions, pointers to functions and function overloading.
- Standard C Library
- Debugging - Detect, correct and prevent bugs.
Object-Oriented Programming [ edit ] [ edit summary ] [ print chapter ]
- Structures
- Unions
- Classes (Inheritance , Member Functions, Polymorphism and this pointer)
- Operator overloading
Advanced Features [ edit ] [ edit summary ] [ print chapter ]
Beyond the Standard (In the real world) [ edit ] [ edit summary ] [ print chapter ]
- Resource Acquisition Is Initialization (RAII)
- Design Patterns (Creational, Structural and Behavioral patterns)
- Libraries
- Cross-Platform Development
- Optimizing Your Programs
- Unified Modeling Language (UML)
Appendix A: References Tables (used in book)
• Keywords • Preprocessors Directives • Standard Headers • Data Types • Operators • Standard C Library Functions
Appendix B: External References (used in book)
Appendix C: Source Code Examples (used in book) [ edit ] [ edit summary ]
Compilable Example Programs
- Simple "Hello World"
- Confusing Scope
- Average ( same program rewritten using a class )
- Complicated Scope (v1 - v2 - v3)
- Namespaces
- Storing two values in integer variables (v1 - v2)
- Using a Class
- Displays a string (v1 - v2 - v3)
Appendix D: Exercises
- Variables and types (5 exercises)
- Iterations (20 exercises)
- Static arrays (5/15 exercises)
- Functions
- The Standard IO Stream
| Wikibook Development Stages | ||||
|---|---|---|---|---|
| Sparse text |
Developing text |
Maturing text |
Developed text |
Comprehensive text: |
