//this is a program to display star pattern 1 #include<iostream> #include<conio.h> using namespace std; int main() { i...
Read More
Write a program to display star pattern 2
//this is a program to display star pattern 2 #include<iostream> #include<conio.h> using namespace std; int main() { i...
Read More
Write a program to find the square of the given number
//this is a program to find the square of the given number #include<iostream> #include<conio.h> using namespace std; int ma...
Read More
Write a program to display the square and the cube of 10 numbers
//this is a program to display the square and the cube of 10 numbers #include<iostream> #include<conio.h> using namespace s...
Read More
Write a program of sorting the given array
//This is a program of sorting the given array #include<iostream> #include<conio.h> using namespace std; int main() { ...
Read More
Write a program to find the smallest among 3 numbers
//this is a program to find the smallest among 3 numbers #include<iostream> #include<conio.h> using namespace std; int ...
Read More
Write a number to find the smallest among two numbers
//this is a number to find the smallest among two numbers #include<iostream> #include<conio.h> using namespace std; int m...
Read More
Write a program to find the smallest element of the given array
//this is a program to find the smallest element of the given array #include<iostream> #include<conio.h> using namespace st...
Read More
Write a program Of searching of the array element METHOD 2
//this is a program Of searching of the array element METHOD 2 #include<iostream> #include<conio.h> using namespace std; ...
Read More
Write a program Of searching of the array element
//this is a program Of searching of the array element #include<iostream> #include<conio.h> using namespace std; int main(...
Read More
Write a program to demonstrate scope resolution operator in c++
//this is a program to demonstrate scope resolution operator in c++ #include<iostream> #include<conio.h> int x=10; using na...
Read More
Write a program to find the reverse of the entered number
//This is a program to find the reverse of the entered number #include<iostream> #include<conio.h> using namespace std; i...
Read More
Write a program to find whether the number is positive negative or zero
//this is a program to find whether the number is positive negative or zero #include<iostream> #include<conio.h> using name...
Read More
Write a program to print the star pattern in pyramid form
//this is a pattern to print the star patter in pyramid form #include<iostream> #include<conio.h> using namespace std; int ...
Read More
Write a program to find whether the entered number is palindrome or not
//This is a program to find whether the entered number is palindrome or not #include<iostream> #include<conio.h> using name...
Read More
Write a program to display number pattern 1
//this is a program to display number pattern #include<iostream> #include<conio.h> using namespace std; int main() { i...
Read More
Write a program to display number pattern 2
//this is a program to display number pattern 2 #include<iostream> #include<conio.h> using namespace std; int main() { ...
Read More
Write a program to display number pattern 3
//this is a program to display number pattern 3 #include<iostream> #include<conio.h> using namespace std; int main() { ...
Read More
Write a program of matrices addition
//this is a program of matrices addition #include<iostream> #include<conio.h> using namespace std; int main() { int a[...
Read More
Write a program to find the whether the entered year is a leap year or not
//this is a program to find the whether the entered year is a leap year or not #include<iostream> #include<conio.h> using n...
Read More
Write a program Fibonacci series
//this is a program Fibonacci series #include<iostream> #include<conio.h> using namespace std; int main() { int f1=0,f...
Read More
Write a program to find the factorial of the given program
//This a program to find the factorial of the given program #include<iostream> #include<conio.h> using namespace std; int...
Read More
Write a program to find the square of the given number
//this is a program to find the square of the given number #include<iostream> #include<conio.h> using namespace std; int m...
Read More
Write a program to find the sum of even and odd numbers
//this is a program to find the sum of even and odd numbers #include<iostream> #include<conio.h> using namespace std; int...
Read More
Write a program to demonstrate conditional operator
//this is a program to demonstrate conditional operator #include<iostream> #include<conio.h> using namespace std; int mai...
Read More
Write a program for the addition of two arrays
//this is a program for the addition of two arrays #include<iostream> #include<conio.h> using namespace std; int main() ...
Read More
Write a program of addition of two numbers and their average in C++
/*This is a program of addition of two numbers and their average in C++*/ #include<iostream> #include<conio.h> int main() {...
Read More
Write a program to find the sum of the digits
//this is program to find the sum of the digits #include<iostream> #include<conio.h> using namespace std; int main() { ...
Read More
Write a program to demonstrate inside class definition
//this is a program to demonstrate inside class definition #include<iostream> #include<conio.h> using namespace std; clas...
Read More
Write a program for Member Function for each task
/*Member Function for each task */ #include<iostream> using namespace std; class Rectangle { int l,b; public: ...
Read More
Write a program to demonstrate the out side class definition
//this is a program to demonstrate the out side class definition #include<iostream> #include<conio.h> using namespace std; ...
Read More
Write a program for Private Member Function for each task
/* Private Member Function for each task */ #include<iostream> using namespace std; class Rectangle { int l,b; void a...
Read More
Write a program for Private member function
/* Private member function */ #include<iostream> using namespace std; class Sample { int a,b; void accept() { ...
Read More
Write a program to perform Nesting of member function
/* Nesting of member function */ #include<iostream> using namespace std; class Sample { int a,b; public: ...
Read More
Write a program to perform Function Returning Object
/* Function Returning Object */ #include<iostream> using namespace std; class Sample { int a,b; public: voi...
Read More
Write a program for Array within Classes
/* Array within Classes */ #include<iostream> using namespace std; class Sample { int a[5]; public: void accept(); ...
Read More
Write a program for Array in classes
/* Array in classes */ #include<iostream> using namespace std; class Sample { int a[100],n; public: void ...
Read More
Write a program for Array of Object
/*Array of Object */ #include<iostream> using namespace std; class Student { int roll; float per; public: ...
Read More
Write a program to perform Array of Objects and outside class definitions
/*Array of Objects */ #include<iostream> using namespace std; class Sample { int a; public: void accept(); ...
Read More
Write a program for Static Member Function
/* Static Member Function */ #include<conio.h> #include<iostream> using namespace std; class Sample { int code; ...
Read More
Write a program for Static Data Member
/* Static Data Member */ #include<iostream> #include<conio.h> using namespace std; class Sample { int code; stati...
Read More
Write a program to perform INLINE FUNCTION
/* INLINE FUNCTION */ #include<iostream> using namespace std; class Operation { int a,b; public: ...
Read More
Write a program to perform Normal Friend Function
/* Normal Friend Function */ #include<iostream> using namespace std; class Addition { int a,b; public: v...
Read More
Write a program to perform Normal Function is a Friend of two classes 2
/* Normal Function is a Friend of two classes */ #include<iostream> using namespace std; class Demo; class Sample { i...
Read More
Write a program to perform Member Function of one class as a friend of another class
/* Member Function of one class as a friend of another class Sum */ #include<iostream> using namespace std; class Demo; ...
Read More
Write a program to perform Class is a friend of another class Sum
/* Class is a friend of another class Sum */ #include<iostream> using namespace std; class Demo; class Sample { int a...
Read More
Write a program to perform Member Function of one class as a friend of another class
/* Member Function of one class as a friend of another class */ #include<iostream> using namespace std; class Demo; class S...
Read More
Write a program to perform Class is a friend of another class
/* Class is a friend of another class */ #include<iostream> using namespace std; class Demo; class Sample { int a; ...
Read More
Write a program to Swap two numbers in which Friend Function of one class as a friend of another class
/* Friend Function of one class as a friend of another class Swap two numbers */ #include<iostream> using namespace std; ...
Read More
Write a program to find Largest Number from two using classes Friend Function
/* Largest Number from two using classes Friend Function */ #include<iostream> using namespace std; class Demo; class Sampl...
Read More
Write a program to find Even or odd using Friend Function
/* Even or odd using Friend Function */ #include<iostream> using namespace std; class EvenorOdd { int a; public: ...
Read More
Write a program to find Average/mean values of two number using Friend Function
/* Average/mean values of two number using Friend Function */ #include<iostream> using namespace std; class Average { int a...
Read More
Write a program to find Armstrong Number using Friend Function
/*Armstrong Number using Friend Function*/ #include<iostream> using namespace std; class Armstrong { int a; public: ...
Read More
Write a Program to negate the values of data members using pass by reference
/* Program to negate the values of data members negate=reverse the sign */ #include<iostream> using namespace std; class Ne...
Read More
Write a program to demonstrate Pass by Reference
/* WAP to demonstrate Pass by Reference */ #include<iostream> using namespace std; class Sample { int a; public: ...
Read More
Write a program to Display the title of book having minimum price using Pass By Value
/*Pass By Value Display the title of book having minimum price */ #include<iostream> using namespace std; class Book { ...
Read More
Write a Program to add two time and store result into 3rd object
/* WAP to add two time and store result into 3rd object */ #include<iostream> using namespace std; class Time { int hou...
Read More
Write a program to add height and store it in 3rd object
/* WAP to add height and store it in 3rd object */ #include<iostream> using namespace std; class Height { int foot,inch; ...
Read More
Write a program to add two time and store result into 3rd object using pass by value
/* WAP to add two time and store result into 3rd object */ #include<iostream> using namespace std; class Time { int hou...
Read More
Subscribe to:
Posts (Atom)