C++

//Content under construction, as I’m migrating the data from my old website πŸ™‚

Compiling C++ codes can be done in multiple ways. In this page, I list some of them which I personally use (Visual Studio, Qt, CMake and GCC).

C++ is my favourite programming language and my first experience with learning Object Oriented Programming (OOP). The key features of OOP are: inheritance – polymorphic and encapsulation (and fundamentally abstraction).

Table of Contents
1. C++ Programming Basics
2. Loops & Decisions
3. Structures
4. Functions
5. Objects & Classes
6. Arrays & Strings
7. Operator Overloading
8. Inheritance
9. Pointers
10. Virtual Functions
11. Streams & Files
12. Multi-file programs
13. Templates & Exceptions
14. Standard Template Library
15. Object-Oriented Design
Appendix: Necessary Notes
Header files needed for some library functions

  1. C Programming Basics
    1. Basics
    2. Comments
    3. Variables [Integers – Short – Long — Char — Floating Point – double – long-double — Boolean — unsigned data types — Type Conversion]
    4. Casts
    5. Output/Input
    6. Arithmetic Operators
  2. Loops & Decisions
    1. Logical operators
    2. Loops [For loop — While loop — Do loop]
    3. Decisions [If — Switch]
    4. Conditional operator — Logical Operator
    5. Other Control Statements
  3. Structures
    1. Structures
    2. Enumerations
  4. Functions
    1. No arguments
    2. Passing constants as arguments
    3. Passing variables
    4. Overloaded functions
    5. Inline functions
    6. Default arguments
    7. Variables and Storage Classes
    8. Automatic
    9. External
    10. Static
    11. Returning by reference
    12. Const function arguments
  5. Objects & Classes
    1. C++ Objects as data types
    2. Constructors
    3. Destructors
    4. Objects as function arguments
    5. The default copy constructor
    6. Returning objects from functions
    7. Card game example
    8. Structures and classes
    9. Static class data – object, classes and memory
    10. const and classes
    11. const objects
  6. Arrays & Strings
    1. Arrays Fundamentals
    2. Multidimensional arrays
    3. Arrays as function arguments
    4. Arrays of structures
    5. Arrays as class member data
    6. Arrays of objects
    7. Arrays of cards
    8. C-strings
Advertisement