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 an 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 (or any of the by Chapter print versions).Getting Started [ edit ] [ print chapter ]
- Introducing C++
- Programming languages
- Programming paradigms - the versatility of C++ as a multi-paradigm language, concepts of Object-Oriented Programming.
- 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 ] [ print chapter ]
- Code
- Internal storage of data types
- Variables - An introduction with source examples.
- Scope - with source examples.
- Compiler
- Introduction and installation, including a list of recognized keywords and directives.
- Preprocessor
- includes the standard headers. - Linker

- Preprocessor
- Operators - with a brief mention of operator overloading.
- Type casting - Including Automatic, explicit and advanced type casts.
- Flow of control - Conditionals, loops and goto.
- Functions - An introduction including argument passing, returning values, recursive functions, pointers to functions and function overloading.
- Debugging - Detection, correction and prevention of bugs.
Object-Oriented Programming [ edit ] [ print chapter ]
Advanced Features [ edit ] [ print chapter ]
- I/O
- Standard Template Library (STL)
- Smart Pointers
- Exception Handling
- Templates
- Run-Time Type Information (RTTI)
Beyond the Standard [ edit ] [ edit summary ] [ print chapter ]
- Resource Acquisition Is Initialization (RAII)
- Garbage Collection
- Design Patterns - Creational, Structural and Behavioral patterns.
- Libraries - APIs vs Frameworks and Static and Dynamic Libraries.
- Boost Library
- 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 ]
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