C++ Programming/TOC1
From Wikibooks, the open-content textbooks collection
This book covers the C++ programming language, its interactions with software design and real life use of the language. Its presented as a introductory to advance course but can also be used as reference book. This is an open work, if you find any problems with terms or concepts you can help by contribute to it, your participation is needed and welcomed!. You are also welcome to state any preference, shortcomings or vision for the actual book content, structure or other conceptual matters, see this wikibook's discussion page for the right forum for participating.
About the book [ edit ]
You can use WikiType an online application which converts the WikiBooks into formatted PDF. With no source highlight.
Use the link for the single page version version of the work.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)
- with D
Fundamentals [ edit ] [ edit summary ] [ print chapter ]
- Code
- 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.
- Compiler File:75%.png - Introduction and installation. List of recognized keywords and directives (inline, static, etc...).
- Preprocessor File:100%.png - includes the standard headers.
- Linker File:25%.png
- 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.
- 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 ]
- I/O
- Standard Template Library (STL)
- Smart Pointers
- Exception Handling
- Templates
- Run-Time Type Information (RTTI)
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
- Software Internationalization
- 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: |

