C++ Programming Tutorials

C++ Programming Tutorials And Articles
  Title / Author Reverse Sort Order Replies
Views
Introduction This article talks about Handle-Body pattern and it's uses. Background Though, C++ provides private and public access specifiers to differntiate implementation and interface parts of a class, down the line any changes to the private data or member functions implementation...
6
12,403
Introduction This talks about Virtual Friend Function in C++. Background Friend functions are not in-herited in C++. So, to achieve dynamic binding with friend functions, we have to make the interfaces as virtual (make it as protected part of class) to operate within the friend function....
1
7,465
Introduction This article talks a little bit about Smart Pointer conepts and then move on to Reference Counting. Then there is a smaple code to implement the same. Background Smart pointer or auto-pointer is a simple wrapper around a regular pointer, provides all meaningful operations to...
1
9,943
Introduction This article talks about Function Object and it's uses over Function Pointers Background A Function Object, is an Object of a class that defines an operator () and can be called as a function. When a function object is used as a function, the function call operator() is...
3
5,676
Introduction This article talks about how Virtual table and _vptr looks in case of simple Multiple Inheritance Background In Multiple Inheritance, the Derived class contains the _vptr of all it's Base classes. Lets see the below example, where-in, derived class i.e. Derive is derived...
1
10,792
Introduction This article talks about size of a class with all possible scenarios like having simple data (with and without structure padding), virtual functions, Replicated and Shared Multiple Inheritance etc. Background Size of a class object is nothing but it's non-static member data +...
7
37,237
Introduction This article talks about Virtual Table and _vptr in Replicated Multiple Inheritance and in Virtual Base Class (or Shared Multiple Inheritance). Here it is explained using an example: In this example, we have Base1, Base2, Base3 and Derive classes, where Base2 and Base3 classes...
4
5,754
This article talks about Association, Aggregation and Composition Relationships between classes with some C++ examples. Background Association is a simple structural connection or channel between classes and is a relationship where all objects have their own lifecycle and there is no owner. ...
8
104,183
Introduction This article talks about Static in C++. Background Static Variables: 1. All static variables are stored in Data Segement.
6
5,260
Introduction This article talks about ASSERTs usage and customizing our own ASSERTs. Background Asserts are to catch implementation errors. The developer can document all the assumptions made on the his/her program, by using ASSERTs. If you have used asserts in your code and if it...
8
13,138
Introduction This article explains about Callbacks and implmentation of it using below 3 different methods: Static Functions Non-Static or Member Functions Functor or Function Objects. Background
1
8,611
Introduction This article tries to cover all about Arrays like from it's definition till it's usage using a single dimension. Background Definition An array is a built-in Data Structure that holds a sequence of variables of same data type, that are stored in a contiguous memory...
8
6,064
Introduction This article talks about Initialization List in C++. Background Definition: Initialization List is another or a better approach for initializing the member variables (and base class objects) of a class upon construction of an instance of it's own.
6
13,213
Original Non English Version here. For simple applications, it's enough just to rely on automatic memory management through local variables. But once the data become larger, it is no longer imperative to request memory from the heap and manage. Content Function Families Allocators ...
7
9,729
Introduction Code for solving system of equation by Gaussian elimination method. The Code is well commented and would not need any further explanation The code #include <stdio.h> #include <conio.h> #define N 100
10
13,165
Introduction Gauss-siedel method to solve system of equations :undecided The code #include <stdio.h> #include <conio.h> #include <math.h>
3
3,993
Introduction Lagranges interpolation formula The code #include <stdio.h> #include <conio.h> #define N 100
7
5,667
Introduction List out all of the installed Windows Services In C++ The code #include <windows.h> #include <iostream.h> void ErrorDescription(DWORD p_dwError);
1
6,283
Introduction Code for LinkList in C++ The code #include "LinkedList.h" /** * Construct the list
4
33,427
A virtual function is used where we want to allow the derived class to replace the implementation of the same function in base class. The compiler always calls the derived class function when called with object of the derived class or an object of base class holding the address of the derived class...
2
5,065