C++ Programming

C++ Program Structure

C++ is a very popular programming language. Every C++ program has a general structure that it must follow. Here is common structure of a C++ program. Header Section The header section is used for Including header files Declaring global variables Declaring functions Defining constants You can divide C++ functions into two categories – Builtin functions …

C++ Program Structure Read More »

C++ File Stream Classes

File streams are the libraries which are utilized in programming. These use the iostream preferred standard library because it offers cin and cout strategies which are used for analyzing from the input and writing to the output respectively.  A file is a collection of associated data stored in a particular area on a disk. The …

C++ File Stream Classes Read More »

C++ Virtual Functions

In this article, you are going to learn about an important concept in C++ called the virtual functions and pure virtual functions. However, it is recommended that you learn about basics of pointer, classes and derived classes before reading further. What is Virtual Function?  A virtual function is a special type of member function that …

C++ Virtual Functions Read More »

C++ Pointers To Objects

To understand the topic of pointers to objects, we need to know what is an object , pointer and class. A class is defined in C++ using keyword class followed by the name of class. The body of class is defined inside the curly brackets and terminated by a semicolon at the end. What is …

C++ Pointers To Objects Read More »

Preprocessor In C++

Understanding c preprocessor includes the source code which is  written by programmers is stored in the file “program.c”. The file that is stored then processed by preprocessors and an expanded source code file is generated as named program. This expanded file is compiled by the compiler and an object code file is generated as named …

Preprocessor In C++ Read More »

C++ Reference Variable

C++ language allows you to create a new type of variable called reference variable. What Is A Reference Variable ? A variable that store values is called a value variable. The C++ reference variable is an alias for a value variable. It refers to the memory location of the value variable like pointer. Any changes …

C++ Reference Variable Read More »