Program to implement Stack and Queue using Pure Virtual Functions:- store and retrieve

Question:- Create a class called LIST with two pure virtual function store() and retrieve().To store a value call store and to retrieve call retrieve function. Derive two classes stack and queue from it and override store and retrieve. Hello Programmers, The program to Implement Stack and Queue using Pure Virtual Functions:- store and retrieve is … Continue reading Program to implement Stack and Queue using Pure Virtual Functions:- store and retrieve

Advertisement

Program to Perform operations on a String

Question:- Implement a class string containing the following functions: Overload + operator to carry out the concatenation of strings.Overload = operator to carry out string copy.Overload <= operator to carry out the comparison of strings.Function to display the length of a string.Function tolower( ) to convert upper case letters to lower case.Function toupper( ) to … Continue reading Program to Perform operations on a String

Program to find the greatest of two numbers using Friend Function

Question:- Write a program to find the greatest of two given numbers in two different classes using friend function. Hello Programmers, The program to find Greatest of two numbers in two different classes using Friend Function is given below:- /* * Author:- Rahul Malhotra * Source:- Programming Vidya * Description:- Program to find the greatest … Continue reading Program to find the greatest of two numbers using Friend Function

Program for Addition of two complex numbers using constructor overloading

Question:- Write a program to perform addition of two complex numbers using constructor overloading. The first constructor which takes no argument is used to create objects which are not initialized, second which takes one argument is used to initialize real and imag parts to equal values and third which takes two argument is used to … Continue reading Program for Addition of two complex numbers using constructor overloading

Program for Multiplication of two matrices using OOP

Question:- Write a program for multiplication of two matrices using OOP. Hello Programmers, The program for Multiplication of two matrices using OOP is given below:- /* * Author:- Rahul Malhotra * Source:- Programming Vidya * Description:- Program for Multiplication of two matrices using OOP * Website:- http://www.programmingvidya.com */ #include <iostream> #include <iomanip> using namespace std; … Continue reading Program for Multiplication of two matrices using OOP