Skip to content
Xiith
  • Home
  • C
  • C++
  • C#
  • Java
  • Python
  • Kotlin
  • R
  • Go
  • JavaScript
  • About us
Search this website
Menu Close
  • Home
  • C
  • C++
  • C#
  • Java
  • Python
  • Kotlin
  • R
  • Go
  • JavaScript
  • About us

C++ Program to find the largest of three numbers using function templates

In this program, You will learn how to find the largest of three numbers using function templates in C++. template < class T > void find(T x, T y, T…

Continue ReadingC++ Program to find the largest of three numbers using function templates

C++ Program to swap two numbers using function templates

In this program, You will learn how to swap two numbers using function templates in C++. template < class T > void swap(T &x, T &y) { //statement } Example:…

Continue ReadingC++ Program to swap two numbers using function templates

C++ Program to add two numbers using pure virtual function

In this program, You will learn how to add two numbers using a pure virtual function in C++. virtual void input() = 0; virtual void add() = 0; Example: How…

Continue ReadingC++ Program to add two numbers using pure virtual function

C++ Program using pure virtual function

In this program, You will learn how to implement a pure virtual function in C++. virtual void msg() = 0; Example: How to implement a pure virtual function in C++.…

Continue ReadingC++ Program using pure virtual function

C++ Program to find area perimeter of a rectangle using virtual function

In this program, You will learn how to find the area perimeter of a rectangle using a virtual function in C++. virtual void calculate() { //statement } Example: How to…

Continue ReadingC++ Program to find area perimeter of a rectangle using virtual function

C++ Program to perform an arithmetic calculation using virtual function

In this program, You will learn how to perform arithmetic calculations using a virtual function in C++. virtual void calculate() { //statement } Example: How to perform an arithmetic calculation…

Continue ReadingC++ Program to perform an arithmetic calculation using virtual function

C++ Program to find cube of a number using virtual function

In this program, You will learn how to find a cube of a number using a virtual function in C++. virtual void msg(){ //statement } Example: How to find a…

Continue ReadingC++ Program to find cube of a number using virtual function

C++ Program using virtual function

In this program, You will learn how to implement a virtual function in C++. virtual void msg(){ //statement } Example: How to implement a virtual function in C++. #include<iostream> using…

Continue ReadingC++ Program using virtual function

C++ Program to add two numbers using function overriding

In this program, You will learn how to add two numbers using function overriding in C++. class First { public void sum(int, int) { //statement } }; class Second :…

Continue ReadingC++ Program to add two numbers using function overriding

C++ Program using function overriding

In this program, You will learn how to implement function overriding in C++. class First { public void msg() { //statement } }; class Second : public First { public…

Continue ReadingC++ Program using function overriding
  • 1
  • 2
  • 3
  • 4
  • …
  • 20
  • Go to the next page

Xiith is created for educational, experimental, and schooling purpose. Examples on Xiith are made easier to make a better or basic understanding. Tutorials, testimonials, and examples are continuously checked to avoid delusion, but we cannot take complete responsibility of all programs on Xiith. When you are operating this site, you have to agree to read and accept our terms of use, cookie and privacy policy. Copyright © 2021 by Xiith. All Rights Reserved. About us.