C++ Programming Tutorials

C++ Programming Tutorials And Articles
  Title / Author Replies
Views
C is not a strong type based language but C++ has been trying to become a stronger type based language. Classes and structures are example of strong types whereas the implicit conversion between different types is an example of weak type system. For example, in the following decelerations implicit...
0
576
In C++ we already know different uses of the ellipsis operator (…) in different context. It is used for functions with variable number of argument, variadic macros and in catch block in exception handling. Let us look into these existing meaning of ellipsis operator (…) in different context and...
0
679
We know that C++11 added the feature of rvalue reference. Here assumption is that the reader is already familiar with rvalue and lvalue and their references. As we know that we declare rvalue reference with double ampersand like: int&& var1 = 10; // var1 is an rvalue reference variable means it...
0
758
C++ always has been creating fast programs, still there were loop holes which could substantially slow down C++ programs until C++11. This was due to temporary object creation and expensive object copies. C++11 added a new reference type called 'rvalue reference' and a new concept of moving object...
0
749
Releasing memory allocated in heap has been always been a concern for programming languages like C and C++. Memory leak is a side effect of using dynamic memory allocation in C++. This is because C++ compiler does not support automatically release memory allocated in heap when they are no more...
0
790
To understand usage of auto and decltype keyword you need to know the existing type deduction facility available in C++98, because auto and decltype are C++11/C++14 extension to the existing feature of the compiler to deduce type from another expression. In case you are not aware of existing type...
0
729
Many experienced programmers have ignored the fact that the major release C++11 has added lot of features which are part of modern programming technique. If you are passionate programmer and loves C++ as the programming language you must know those new features. The objective of this topic is to...
0
878
The misconception that C++ is an advance C still prevails among developers and so let me try to clarify that C++ only inherits some syntax from C and nothing more than that. Before I get into the details about the difference between C and C++ programming let me clarify a myth, which is, you need to...
5
11,127
Different components of C++ programming The various essential components used in C++ programming are as explained below: Class: The class is a template used for demonstrating the behavior supported by the object Object: The object in C++ consists of states and behaviors. An object is an...
0
1,629
For learning the C++ programming, user needs the right development environment. The environment can be set up on various operating systems. In this article, we shall explore the local environment setup and installation on different operating systems. In order to set up a development environment...
0
1,150
C++ is by Bjarne Stroustrup in 1979. It was created as an enhancement to the C language. It is a combination of higher and low level programming language. It is a superset of the C language. It is case sensitive and provides support to generic and procedural programming concepts. Object oriented...
0
1,276
All possible combinations of a string 1. Finds all possible cominations of a given string. The total number of combinations with recurrences is the factorial of the string length. 2. Have given the word 'post' as an example since if I included a cin >> word; then a user may unconscientiously...
21
44,771
Making a Phone Book application in C++ is interesting; because it lets you learn the language practically. Making sample applications in any programming language is an interesting job. And this is perhaps the best approach to learning any programming language. As a programmer, your goal is to...
0
16,108
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
30,236
In this article we are going to explain some of the most fundamental but often neglected concepts of C++ programming language. These concepts are extremely interesting and if employed well, can solve complex mathematical problems. So, without wasting any more time, let us jump to the first concept...
0
6,153
Object oriented programming is a design philosophy. In programming paradigm, object oriented programming is the process by which a problem is decomposed into a number of entities called object and then data and functions are built around these objects. The main advantages of OOP are: ...
0
9,586
Multithreading is one of the most fascinating feature of modern day programming. If you are not familiar with multithreading then most probably you have been writing programs that are single threaded. By single threaded program we mean such a program where program instructions run in a sequence and...
0
9,540
While gathering requirements for a software product, we cannot cover all the use cases of the product. If software under development is simpler we might be able to make it fool proof from all angles but large enterprise software products are not easy to develop maintaining high standards of...
1
6,066
In my previous articles, I had introduces you to some of the fundamental concepts of the C++ language. However, you would have noticed that all the code we wrote, resided in a single file. We developed object oriented programs where we used multiple classes, but all those classes were in a single...
0
7,436
Whenever you hear the word virtual, the first thing which comes to your mind is something that only exists in appearance but in reality you cannot physically see or touch that thing. A virtual function in C++ is a similar concept. Virtual functions lays at the heart of object oriented programming...
0
7,580