C++ Programming Tutorials

C++ Programming Tutorials And Articles
  Title Reverse Sort Order / Author Replies
Views
Templates, which are sometimes called parameterized types, are mechanisms for generating functions and classes based on type parameters. By using templates, you can design a single class or function that operates on data of many types, instead of having to create a separate class for each type. ...
1
5,431
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
2,972
Q: What are traditional C++ (pre-standard) headers? A: The traditional C++ (pre-standard) headers define classes, values, macros, and functions in headers that have *.h extension. This includes non-standard STL headers with *.h extension (iostream.h, fstream.h, vector.h, etc.) and C headers with...
0
2,221
Introduction Memory allocation for objects is a tough issue, sometimes. Dynamically allocated memory has to be treated specially when one object is used to initialize another. In default constructor a bit wise copy is done when one object is assigned to another, leaving no room for separate...
1
3,476
The essence of the code analysis library VivaCore. Annotation. The article tells developers about VivaCore library, preconditions of its creation, its possibilities, structure and scope of use. This article was written simultaneously with the development of VivaCore library and that's why some...
2
4,071
Annotation. Though the history of 64-bit systems development makes more than a decade, the appearance of 64-bit version of OS Windows raised new problems in the sphere of development and testing applications. In the article there are considered some mistakes connected with 64-bit C/C++ code...
3
3,350
Three major concepts of C++ are Classes, Polymorphism, Inheritance.Let us discuss them in details. Classes A class is the implementation of an abstract data type. It defines attributes and methods which implement the data structure and operations of the abstract data type, respectively....
1
3,189
Annotation. The article may be interesting for developers who use or plan to use OpenC++ library (OpenCxx). The author tells about his experience of improving OpenC++ library and modifying the library for solving special tasks. Introduction. Introduction. One may often here in forums that...
4
3,706
Introduction Here is the code for a threaded binary tree. The basic difference between a binary tree and the threaded binary tree is that in the binary trees the nodes are null if there is no child associated with it and so there is no way to traverse back. But in a threaded binary...
8
28,992
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
5,953
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,347
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,014
Inheritance is an extremely useful and exciting object oriented programming feature. Inheritance allows you to organize and reuse code effectively. Think of inheritance from a general perspective. Take your example; you inherit several characteristics from your parents. If your parents are tall,...
0
565
Pointers are often considered the most confusing concept of C++ language despite of being extremely straight forward. Developers who are newbie to C++ programming get perplexed while understanding pointers. However, by paying attention to the concept theory and practical examples, pointers can be...
1
586
Programs you code reside in random access memory or commonly known as RAM. RAM is also known as volatile memory space. What happens is that when you run a program, your CPU selects corresponding files to execute from your hard drive and loads it into memory. A problem here arises that the data of...
0
641
Being an experienced C/C++ developer, sometimes there are modules in which the code layer which interact with the system is written in C while the layer above it is written in C++. Have you ever thought of how these two layers (one written in C and other in C++) interact? What if we want to call a...
0
2,878
We have all read about C++ Standard Template Library. It provides generic code for data types. Like vectors, pairs, list, sets, maps, etc. Today we'll take a good look into Vectors. VECTOR We have all been using arrays to store elements. But you must have thought at one point or another,...
3
2,818
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,032
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
35,768
Virtual functions in C++ play an important role. To understand virtual function, one should be clear about the polymorphism feature of C++ language as an object oriented language. In brevity, polymorphism is the weapon through which we can identify a function call through its parameters, or...
0
2,070