Constructors in C++

A constructor is a special method that is created when the object is created or defined. This particular method holds the same name as that of the object and it initializes the instance of the object whenever that object is created. The constructor also usually holds...

Destructors in C++

As opposed to a constructor, a destructor is called when a program has finished using an instance of an object. A destructor does the cleaning behind the scenes. Like the default constructor, the compiler always create a default destructor if you don’t create...

Exception Handling

Exceptions are the way of flagging unexpected conditions or errors that have occured in C++ program. Exception Mechanism so far we have handled error conditions by using the if statement to test some expressions and then executing specific code to deal with the error....

Arrays in C Programming

What is an Array in C Programming? In C Programming, an array can be defined as number of memory locations, each of which can store the same data type and which can be references through the same variable name. An array defined in a very straightforward syntax in C as...

Functions in C Programming

What is a Function in C Programming? A function is a block of code that has a name and it has a property that it is reusable i.e. it can be executed from as many different points in a C Program as required. Function groups a number of program statements into a unit...

Input and Output

The standard way of handling all input and output is done with streams in C programming, no matter where input is coming from or where output is going to. This approach has definite advantages for the programmer. A library package has been evolved which is known as...

Loops and Decision – if else, for and while

C language programs are executed in a sequence, but we can control the execution of C program by using any control mechanism by which we can compare things and come to a decision. This involves using some operations called Relational Operators, conditional statements...

Microsoft Direct-X Programming

Before the release of Windows 95, most games were developed and released for the Microsoft Disk Operating System (DOS) platform, usually using something like DOS4GW or some other 32-bit DOS extender to obtain access to 32-bit protected mode. Windows 95, however,...

C# Programming Tutorials

In June 2000, Microsoft announced both the .NET platform and a new programming language called C#. C# is a simple, modern, object oriented, and type-safe programming language derived from C and C++. C# (pronounced “C sharp”) is firmly planted in the C and...

C Programming Tutorials

The C programming language is a general programming language. It can be used to program anything, like computers, embedded systems, operating systems and computer applications. It is a structured and procedural programming language. In the beginning it was developed...

Object Oriented Programming

Since the invention of the computer, many programming approaches have been tried. These included techniques such as modular programming, top-down programming, bottom-up programming and structured programming. The primary motivation in each case has been the concern to...

C++ Programming Tutorials

The C++ language is a superset of the C language. You could write C++ programs like C programs (a few of the programs in this section of tutorials are like that), or you could take advantage of the object oriented features of C++ to write object oriented programs. The...
Page 6 of 6123456