Tag: Stuart Town


Sequence Containers The different Sequence Containers are: vector, list, map. Vector Sequence container stores the elements in contiguous memory locations and allows direct access to any element using subscript operator[].


Templates – Function templates, Class templates in C++ object oriented programming language
C++ supports a mechanism known as template to implement the concept of generic programming.
Templates allows us to generate a family of classes or a family of functions to handle different data types.
Template classes and functions eliminate code duplication for different data types.
Class Template with multiple Parameters
Function Template
Bubble Sort Using Template Function


Disk File I/O with Streams File Handling in C++ Object Oriented Programming Language
A program can receive/transfer data from/to
(a) Console I/O
(b) Disk File I/O
Data can be stored in a file using two formats
(a) Binary (b) Character
in binary format 512 takes 2bytes(16 bits), and in character format it occupies 3bytes, one for each digit.
In C++, the following hierarchy of classes is defined.


 Working with multiple files in C++ Object Oriented Programming Language.


Stream in C++ Object Oriented Programming tutorial
A stream is a sequence of bytes, it acts as a source or destination for data.
The objects cin and cout are predefined in iostream file. The operator >> is overloaded in the istream class and << is overloaded in the ostream class. This is the reason, how, the same operator can handle various data types(e.g int, float, char. etc). Put() and get() functions Streams: Classes and Errors| OOP in C++ Programming Language.


Basic and Advance C++ Object Oriented Programming Language, Coding and Theory Tutorials with examples for Computer Science Students.


A pointer is a variable which stores the address of another variable of the same type like an integer pointer can store the address of another integer variable. this Pointer. Array of pointers to object. Pointers, this Pointer and Array of pointers to object| OOP in C++. Object Oriented Programming.


Multiple Constructor, Parameterized Constructor and Constructor Overloading
Passing objects to a function and returning objects from a function. Copy Constructor. Destructors. Constructors and Destructors in C++ object oriented programming for computer science students. A constructor is a special member function whose name is same as class name, and it is used to perform those tasks that are required at the time of object creation. A constructor of a class is automatically called at the time of object creation.


Introduction to Classes and Objects in C++ Object Oriented Programming.

Custom Search