Example of assignment and copy constructors, overloading operators, friend functions:

The example defines a class VectorInt which contains an array of integers dynamically created when a class object is created. Different operations on the objects re defined.

vectorint.h - class declaration file

vectorint.cpp - class definition file

vector_example.cpp - test file

vector_example.map - Borland C++ Builder project file