#include<iostream> #include<conio.h> using namespace std; main() { float a, b, c; try { cout<<“enter the value of a and b:”; […]
Read more
#include<iostream> #include<conio.h> using namespace std; main() { float a, b, c; try { cout<<“enter the value of a and b:”; […]
Read more#include<iostream> #include<conio.h> using namespace std; class Shape { protected: float dim1, dim2; public: void setdata(float d1, float d2) { dim1=d1; […]
Read more#include<iostream> #include<conio.h> using namespace std; class Base { public: virtual void show() { cout<<“Base class”; } }; class Derive: public […]
Read more#include<iostream> #include<conio.h> using namespace std; template<class t> t area(t length, t breadth) { return(length*breadth); } main() { int l1=3, b1=5; […]
Read more#include<iostream> #include<conio.h> using namespace std; class Class1 { protected: int n; public: void setdata1(int a) { n=a; } }; class […]
Read more#include<iostream> #include<conio.h> using namespace std; class Room { protected: int length, breadth; public: int Area() { return(length*breadth); } }; class […]
Read more#include<iostream> #include<conio.h> using namespace std; class Demo { float m; public: void setdata() { cout<<“enter length in meter:”; cin>>m; } […]
Read more#include<iostream> #include<conio.h> using namespace std; class Demo { float km; public: Demo() { } Demo(float m) { km=m/1000; } void […]
Read more#include<iostream> #include<conio.h> using namespace std; class Demo { int x; public: Demo() { x=0; } Demo(int y) { x=y; } […]
Read more#include<iostream> #include<conio.h> using namespace std; class Demo { int a; public: Demo() { a=0; } Demo(int x) { a=x; } […]
Read more