C and C++ Programming Resources

Custom Search

Tutorials

More on Virtual Functions in C++

Posted on September 10th, 2008 3 Comments

This tutorial will actually be a continuation of the topics covered in the last tutorial of Virtual Functions but this will be a fuller explanation of what virtual functions are and how they can be used in a program. We will present a simple database program with a virtual function to show how it can be used, then we will go on to illustrate a more complex use...
Read More | Make a Comment

Compounded Types in C++

Posted on September 10th, 2008 0 Comments

Sometimes we need to handle limited set of values which can be referred by labels. For example the day of week, year names etc… i.e. enum week{Mon, Tue, Wed, Thu, Fri, Sat, Sun} thisWeek; This concept in C/C++ is called enumeration. Here thisWeek is the variable of enum type week. Enumerated Types The enumerated type is used in C++ in exactly the same way...
Read More | Make a Comment

Pointers in C++

Posted on September 10th, 2008 10 Comments

We can say the pointer as a variable which holds the memory address of another variable. If one variable contains the address of another variable, the first variable is said to point to the second. Declaring a Pointer If a variable is holding the address of another variable then we can declare it as var_type *varName; Here var_type is the valid C++ Language data...
Read More | Make a Comment

Graphics in C Language

Posted on September 10th, 2008 145 Comments

Graphics in C Language We will restrict our discussion on Graphics in C Language to 16 bit C programming and MS DOS environment. In a C Program first of all you need to initialize the graphics drivers on the computer. This is done using the initgraph method provided in graphics.h library. In the next few pages we will discuss graphics.h library in details. Important...
Read More | Make a Comment

Generic algorithms

Posted on September 10th, 2008 1 Comment

Algorithms are at the core of computing. To be able to write an algorithm once and for all to work with any type of sequence makes your programs both simpler and safer. The ability to customize algorithms at runtime has revolutionalized software development. The subset of the standard C++ library known as the Standard Template Library (STL) was originally designed...
Read More | Make a Comment

Pointers

Posted on September 10th, 2008 25 Comments

Each memory location that we use to store the data hase an address in computre memory (RAM). Computer Hardware i.e. CPU uses this addess to reference to a particular data item. A pointer is a variable that stores the address of another variable. A pointer is a variable that represents the location of a data item, such as a variable or an array element. Pointers...
Read More | Make a Comment

C++ and Object Orientation

Posted on September 10th, 2008 0 Comments

Object- Oriented Programming (OOP) is an approach to program organization and development that attempts to eliminate some of the pitfalls of conventional programming methods by in incorporating the best of structured programming features with several powerful new concepts. It is a new way of organising and developing programs and has nothing to do with any particular...
Read More | Make a Comment

Introduction to Classes in C++

Posted on September 10th, 2008 16 Comments

The data types we have applied so far to our variables were used to identify individual items. To create more advanced and complete objects, C++ allows you to group these identifiers and create a newly defined object. An object, such as a CD Player, a printer, a car, etc, is built from assembling various parts. In the same way, C++ allows you to group various...
Read More | Make a Comment


Page 6 of 9123456789