C++ program to swap two numbers using template function: This simple CPP tutorial code for implementing swapping concept. This source code is deals with the following, Swap of Numbers, Swap of Characters, Swap of two strings. All above operations are based on the C++ template functions. There is only one class and template function. For […]
Archives for July 2013
C++ Circular Queue implementation using Template function
Circular Queue implementation in C++ program using template functions: This CPP tutorial code is totally based on Data structures operation. This queue implementation can be done using template functions, Arrays and switch case mechanism between classes. Few operations are performing by this source code. Those implementations are, Insertion of Queue Element, Deletion of Queue values, […]
C++ code to Read a Text File line by line [CPP Tutorial]
C++ program to read text file: This CPP tutorial is used to read a file line by line and displays the content of a particular file. And this operation can be done using Arrays. For this operation we have included the “fstream.h” header file. Because file operations are implemented by this library. Initially you have […]
C++ Pure virtual function Or Abstract with example code
pure virtual function in C++ with example: It is also known as pure virtual methods. It is implemented from the derived class. But that class should not be an Abstract class. If the class is having virtual functions in it, then that is said to be an “C++ Abstact class“. These pure virtual functions will […]
C++ program for Function Overloading with Examples
Function overloading in C++ with example program: This simple CPP tutorial code is all about overloading of functions. If more than two functions have a same name with different parameters[Or Arguments] in a program means that is said to be the functions overloading or methods overloading. And especially this source code is used to find […]
C++ Friend Functions with example program
C++ friend functions for adding two numbers: This CPP example tutorial is used to calculate and adds the 2 numbers that are given by the user. This source code is getting 2 input values and based on that, it performs an operation and finally provides an actual output. This code is available for free of […]
C++ Program for Time class with Constructor & Destructor
C++ Program for Time class with Constructor & Destructor: This CPP code can add two time variables with an use of constructor and destructor functions. “This” keyword also used to display an instance address of a particular variable. In this C++ program we have used the variables like minutes as minz and hours as hrz. […]
- 1
- 2
- 3
- …
- 6
- Next Page »