C++ Programming Tutorials

C++ Programming Tutorials And Articles
  Title / Author Replies
Views Reverse Sort Order
When you plan to design a Class for which you feel that it should not be inherited further by any other class then...Here is a tip : Use of Virtual Private Inheritance #include <iostream> using namespace std; class Base { protected:
3
6,930
Certain applications need to invoke startup functions that run before the main program starts. For example, polling, billing, and logger functions must be invoked before the actual program begins. The easiest way to achieve this is by calling these functions from a constructor of a global object....
12
6,893
I thought of adding this small code snippets to thelibrary which just reverses the content of the array. Not sort in ascending/descending order, but put last array entry to first, etc. EG.. if array consists of {2,3,4,7,12,98},, need to output {98, 12,7,4,3,2} #include <iostream.h> #define...
9
6,885
Talks about what is function hiding and reason behind it. Background In the example given below you would notice that the func() method has different signatures in the base and derived class. Thus its neither a case of function over-riding (which needs same function signature in base and...
3
6,872
I just try to implement the TIC TAC TO GAME USING GRAPHS (ADJACENCY LIST)............. /*======================================================================== ** DSF MINI_PROGECT ** TITAL : - TIC TAC TOE NAME : - KANGANE SANTOSH (VIT, PUNE) DATA STUCTHER USED :- GRAPH ( ADJACENCY...
5
6,808
Introduction This article talks about Enumerated Data Types and set of guidelines in using them. Background Definition: An Enumerated Type is a user defined data type that maps set of names to numeric values called Enumerators. Enums are generally used when we know all the possible...
1
6,745
Introduction This article discusses about the Two Dimensional To Three Dimensional conversion and vice versa in c++ The following program converts two dimensional array to three dimensional array using TwoDimToThree() and converts three dimensional array to two dimensional array ussing...
2
6,714
Introduction A C++ class with lots and lots of comment on each line for you to understand what each line does and how the program flow works. The Code #include <iostream> // Included for cout
13
6,702
Introduction Object-oriented programming (OOP) is a programming language model organized around "objects" rather than "actions" and data rather than logic. Historically, a program has been viewed as a logical procedure that takes input data, processes it, and produces output data. The...
3
6,524
Introduction This article talks about References in C++ with some examples. Background Reference: A Reference is nothing but an Alias to an existing variable.
3
6,502
I constantly study the Web regarding new articles on C/C++/C++11 programming. If I find them interesting, I post links to them in twitter @Code_Analysis, on Reddit /r/Viva64 and like them on StumbleUpon. If you are present on one of these websites, I invite you to follow me. You will find a lot of...
0
6,442
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,438
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,253
One benefit of C++ over C is its exception handling system. An exception is a situation in which a program has an unexpected circumstance that the section of code containing the problem is not explicitly designed to handle. In C++, exception handling is useful bcause it makes it easy to separate...
3
6,199
Introduction This article talks about all different usage of const qualifier in C++. Background Declaration: Named constant or const variables
15
6,172
Data Structures operations using STL(Standard Template Library) #include<iostream> #include<vector> #include<algorithm>// Included for Algorithmic functions such as sort,max_element,binary_search etc #include<stdlib.h> using namespace std; void main() { int i,number,array,choice,srch;...
3
6,000
Today I am going to explain another very important C++ concept: ’The Data Type Conversion in C++’. C++ has wide variety of data types ranging from the basic or primitive data types to the user defined data types. In this article, we are going to explain that how we convert these data types to...
0
6,000
Background Normally most of software Engineer uses singleton design pattern in daily coding life. It's very simple , vast uses but still i saw in many softwares which is not handled proper in C++ based products/projects. One thing more you can'nt design singleton as perfectly behaved singleton....
10
5,877
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,866
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,785