DIA Technologies ..... Shahid Mehmood Akhtar, B.S Honours [ 2001-04 ],University of Engineering and Technology Lahore, Pakistan. All the Programs, Projects and Games in C++, C, Visual Basic, Java and Assembly Language are written by DIA Tech.  Please send your Comments and Suggestions about the web site to DIA Tech at [email protected].
SHAHID MEHMOOD

Home

  C : Basic Programming
     : System Programming
  C++ : OOP
    : Algorithms
    : Data Structures
    : Numerical Analysis
    : Basic Programming
    : Computer Graphics
    : System Programming
    : Compiler Construction
    : Challenging Problems
  Java : Basic Programming
      : Challenging Problems
      : Advance Programming
  Games : Setups
    : Source Code
    Projects
  Libraries
    Visual Basic
  Assembly Language
  About : Me  :  My CV
  Utilities : Compilers - IDE's  


This section C++ : Object Oriented Programming contains source codes of Programs implementing Object Oriented concepts in C++. Classes and Objects are the most important features of C++. Try to make a grip on these features.

select one of the Topics listed below:
Structures
Classes
Inheritance - Containership
Virtual Functions - Polymorphism
Operator Overloading - Type Casting
Friend Classes - Friend Functions
Template Classes - Template Functions
File Processing - Command Line Arguments
Miscellaneous Programs

Note:
All the given files are in zip format, which can be uncompressed with the help of a compression tool. If you do not have any tool, then you can get one from Utilities:Compression Tools.

Structures
CPP-077 A C++ Program to illustrate an example of structures.
CPP-078 A C++ Program to illustrate passing structures to function.
CPP-079 A C++ Program to illustrate pointers, structure and passing structure pointers to function.
CPP-080 A C++ Program to illustrate pointers and an array of structure.
CPP-081 A C++ Program to illustrate the relationship b/w union and structure.
CPP-082 A C++ Program to illustrate an array of structure.
CPP-083 A C++ Program to illustrate the use of nested structures.
CPP-084 A C++ Program to illustrate self-referential structures i.e. Linked List.
Classes
CPP-085 A C++ Program to illustrate classes with inline functions.
CPP-086 A C++ Program to illustrate classes with functions which are not inline.
CPP-087 A C++ Program to illustrate the role of constructor in classes.
CPP-088 A C++ Program to illustrate the passing of values to constructor in classes.
CPP-089 A C++ Program to illustrate the overloading of constructors in classes.
CPP-090 A C++ Program to illustrate the role of destructor in classes.
CPP-091 A C++ Program to illustrate static class data.
CPP-092 A C++ Program to illustrate static member functions.
CPP-093 A C++ Program to illustrate constant objects and constant member functions.
CPP-094 A C++ Program to illustrate strings as member of classes.
CPP-095 A C++ Program to illustrate use of arrays as data items in classes.
CPP-096 A C++ Program to illustrate array of objects in classes.
CPP-097 A C++ Program to illustrate the use of pointer 'this' using header file "THIS.h".
CPP-098 A C++ Program to illustrate object initialization and assignment by default member wise copy.
Inheritance - Containership
CPP-099 A C++ Program to illustrate an example of Inheritance.
CPP-100 A C++ Program to illustrate over-riding of base class member function in a derived class.
CPP-101 A C++ Program to illustrate the difference among public, protected and private inheritance.
CPP-102 A C++ Program to illustrate the multi-level inheritance.
CPP-103 A C++ Program to illustrate multiple inheritance.
CPP-104 A C++ Program to illustrate an example of containership.
Virtual Functions - Polymorphism
CPP-105 A C++ Program to illustrate an example of Polymorphism.
CPP-106 A C++ Program to illustrate an example of Polymorphism. [ Pure Virtual functions ]
Operator Overloading - Type Casting
CPP-107 A C++ Program to illustrate unary operator [ increment operator ++ ] overloading. [ without return type ]
CPP-108 A C++ Program to illustrate unary operator [ increment operator ++ ] overloading. [ with return type ]
CPP-109 A C++ Program to illustrate the binary operator [ + ] overloading. [ by creating a new object ]
CPP-110 A C++ Program to illustrate operator overloading in strings.
CPP-111 A C++ Program to illustrate comparison operator [ < ] overloading.
CPP-112 A C++ Program to illustrate unary operator [ decrement operator -- ] overloading. [ without return type ]
CPP-113 A C++ Program to illustrate unary operator [decrement operator --] overloading. [ with return type ]
CPP-114 A C++ Program to illustrate the binary operator [ - ] overloading. [ by creating an object of that class ]
CPP-115 A C++ Program to illustrate the binary operator [ + ] overloading. [ without creating a new object ]
CPP-116 A C++ Program to illustrate the binary operator [ - ] overloading. [ without creating an object of that class ]
CPP-117 A C++ Program to illustrate the binary operator [ * ] overloading. [ without creating a new object ]
CPP-118 A C++ Program to illustrate the use of stream insertion [ >> ] and extraction [ << ] operators.
CPP-119 A C++ Program to illustrate data conversion between built-in data types.
CPP-120 A C++ Program to illustrate data conversion between built-in data types and user defined data types [ int & float ].
CPP-121 A C++ Program to illustrate data conversion between built-in data types and user defined data types [char].
CPP-122 A C++ Program to illustrate data conversion user defined data types using functions.
CPP-123 A C++ Program to illustrate data conversion user defined data types using constructor.
Friend Classes - Friend Functions
CPP-124 A C++ Program to illustrate the use of friend functions.
CPP-125 A C++ Program to illustrate the use of friend classes.
Template Classes - Template Functions
CPP-126 A C++ Program to interchange the values of two int, float and char using function templates.
CPP-127 A C++ Program to illustrate template classes.
File Processing - Command Line Arguments
CPP-128 A C++ Program to illustrate an example of file handling.
CPP-129 A C++ Program to illustrate an example of file handling. [ DataBase ]
CPP-130 A C++ Program to illustrate command line arguments.
CPP-131 A C++ Program to illustrate printing data on the printer.
Miscellaneous Programs
CPP-133 A C++ Program to find number of days b/w two given dates.
CPP-138 A C++ Program to capitalize the first character of every word in a string.
CPP-141 A C++ Program to copy 'n' number of characters from one string to another at position 'p'.
CPP-142 A C++ Program to check whether a word is palindrome or not. [ using classes & pointers ]
CPP-152 A C++ Program to show the simulation of Solar System.
[ Home | C | C++ | Java | Games | Projects | Libraries | Visual Basic | Assembly Language | About Me ]
  Copyright © 2000-2004
  Shahid Mehmood Akhtar
Recommended Browsers:
Internet Explorer 5.0+
Recommended Resolution:
800x600*
Report a Dead Link or Bug to DIA:
[email protected]
Hosted by www.Geocities.ws

1