C and C++ Programming Resources

Custom Search



Posted on September 14th, 2008 2 Comments

Object oriented programming is a new way of approaching the job of programming. Object oriented programming will seem very unnatural to a programmer with a lot of procedural programming experience. This tutorial is the beginning of the definition of object oriented programming, and we will study the topic of encapsulation which is a “divide and conquer”...
Read More | Make a Comment

Functions in C++

Posted on September 13th, 2008 0 Comments

Functions are the building blocks of any programming language. A Function is a self contained block of code with a specific purpose. It has a name that is used to identify and call it for execution. The function name is global, but it is not necessarily unique in C++. Ivor Hoprton. Declaration of a Function The standard form of declaration of a function is return_type...
Read More | Make a Comment

File Handling in C Language

Posted on September 13th, 2008 277 Comments

In this section, we will discuss about files which are very important for storing information permanently. We store information in files for many purposes, like data processing by our programs. What is a File? Abstractly, a file is a collection of bytes stored on a secondary storage device, which is generally a disk of some kind. The collection of bytes may...
Read More | Make a Comment

Virtual Functions in C++

Posted on September 12th, 2008 16 Comments

Once again we are into a completely new topic with terminology which will be new to you. If you are new to object oriented programming, you should follow along in this tutorial very carefully because every attempt has been made to define every detail of this new and somewhat intimidating topic. One term which must be defined is polymorphism, a rather large word...
Read More | Make a Comment

OOP Techniques

Posted on September 11th, 2008 2 Comments

Before getting into the discussion of what are the object oriented programmingtechniques, let’s first look at What makes a programming language or programming methodology object oriented? Well, there are several indisputable pillars of object orientation. These features stand out more than any other as far as object orientation goes. They are Encapsulation ...
Read More | Make a Comment

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

Page 5 of 9123456789