≡ Menu

C++ Programming

The concept of references in C++ is simple, interesting and useful to programmers. It adds value to C++ when compared with C. Though the debate between the followers of C and C++ will always be there but I personally think that both the languages have little overlapping area of usage. When compared to C, C++ [...]

{ 16 comments }

Constructors and destructors are fundamental to the concept of classes in C++. Both constructor and destructor are more or less like normal functions (but with some differences) that are provided to enhance the capabilities of a class. Constructor, as the name suggests is used to allocate memory (if required) and construct the objects of a [...]

{ 9 comments }

Classes and objects are fundamental concepts of object oriented languages. To learn an object oriented language such as C++, you should have a sound knowledge of classes and objects. This tutorial explains concept of object and classes using an hello world example program. This is the 1st article in our on-going new series on C++ [...]

{ 15 comments }

There are times when it is required to mix the C and C++ code together. For example, while using a legacy C code or while using a specific C library the provides your C++ code with some specific functionality. So, some special steps are to be taken care of when using C code in C++ [...]

{ 8 comments }

One major aspect of system programming is to handle memory related issues effectively. The more you work close to the system, the more memory related issues you need to face. Sometimes these issues are very trivial while many times it becomes a nightmare to debug memory related issues. So, as a practice many tools are [...]

{ 14 comments }

Question: I would like to understand the basics of how to write, compile and execute a C++ program on Linux OS. Can you explain it with a simple example? Answer: Last week we reviewed how to write C program on Unix OS. In this article, let us review very quickly how to write a basic [...]

{ 2 comments }

Tutorial: Make Vim as Your C/C++ IDE Using c.vim Plugin

This article is part of the ongoing Vi / Vim Tips and Tricks Series. As a programmer, you may do lot of repetitive tasks while coding such as: Adding file header Adding function/frame comment Including default code snippet Performing syntax check Reading documentation about a function Converting a code block to comment, and vice versa [...]

{ 20 comments }