C++ Programming Tutorials

C++ Programming Tutorials And Articles
  Title / Author Replies
Views
We have all been using screensaver's since the time we first entered the world of computers. Everyone of us must have thought how one can make a screensaver of his/her own. Screensavers were originally meant to prevent damage to phosphorus coated computer screens. Now they are mostly used for...
1
8,571
Inheritance is a feature in object-oriented programming which is very similar to the way we inherit characteristics from our parents. Characteristics in object-oriented programming terms are attributes and behaviors of a class—that is, the data and methods of a class. Inheritance is a...
4
12,811
Introduction This article talks about all different usage of const qualifier in C++. Background Declaration: Named constant or const variables
15
5,483
If two process are there and one shared memory is there. One wants to write the data and another wants to read the data to the shared memory. I have written a program in which if process1 is writing to shared memory another will wait and vise varsa. To undersand these programs one should have...
34
48,161
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,304
Templates is a concept which enable us to define generic classes and functions and thus provides support for generic programming. Generic programming is an approach where generic types are used as parameters in algorithm so that they work for variety of suitable data types and data structures. A...
2
3,190
In the previous article I explained you about the Templates in C++. C++ comes with the Standard Template Library, or STL, which includes many different types of containers, each with its own set of advantages (and disadvantages). The C++ Standard Template Library is a very large library of...
1
2,417
To the programmers it is very common concept that bugs are of two types i.e logical errors and syntactic errors. Poor understanding of the problem and solution procedure leads to logical errors whereas, the syntactic errors arise due to poor understanding of the language itself. We can detect these...
1
2,201
Annotation. Program errors occurring while porting C++ code from 32-bit platforms on 64-bit ones are observed. Examples of the incorrect code and the ways to correct it are given. Methods and means of the code analysis which allow to diagnose the errors discussed, are listed. This text is an...
1
8,579
Introduction This article talks about Structures in C/C++. Background Definition Structure is a collection of variables of potentially different types, grouped together under a single name, for ease of handling.
4
4,204
Sometimes its very difficult to understand which function would be call. So, this example explain you about how member functions are called while using virtual and without virtual. 1) Example of Virtual Function In the case of virtual function when we call the member functions.The compiler...
6
36,076
Introduction This article talks about keyword explicit in C++. Background Constructors are functions with the same name as the class. They are used to create the instance of a class. They are provided default by the compiler. But still user can have his/her own constructor declared. We can...
3
25,192
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,452
C++ FAQ's I've spent the past few weeks learning C++, and here are a bunch of FAQ's I came up with. Some of these Q n A's are from various sources, but I have edited and revised them using my own words. What is C++? C++ is a computer programming language. Its name is literally...
2
2,924
Abstract In this article, Anatoliy Kuznetsov answers the questions and tells us about the open BitMagic C++ Library. Introduction While regularly looking through the Internet-resources related to the sphere of 64-bit programming, I often came across mentioning about BitMagic C++ Library...
2
2,483
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,257
This is very simple if you think in a simple manner. A magic square is represented in a matrix form. May be all of you know this formula to satisfy magic square rule i.e. for size of matrix n*n sum of each row or column or diagonal should be n/2. means for n=3 , sum(row or column or diag)...
34
18,737
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
5,676
Introduction This article talks about Multi-Dimensional Arrays in C/C++. About 1-Dimensional Array see All about Arrays in C/C++ - Part I Background Multi-Dimensional Arrays Multi-dimensional arrays are nothing but Array of Arrays.
5
4,495
Casts are used to convert the type of an object, expression, function argument, or return value to that of another type. Some conversions are performed automatically by the compiler without intervention by the programmer. These conversions are called implicit conversions. The standard C++...
5
11,930