Skip to content
Digital Ranger
  • Home
  • Blog
  • Contact
Menu Close
  • Home
  • Blog
  • Contact

Blog

  1. Home>
  2. Blog>
  3. Page 2
c++

Program to built matrix with the use of new and delete operator.

#include #include main() { int (*pa)[4]=new int [3][4]; int *pn=new int,i,j; int *pm=new int; clrscr(); cout<>*pn; cout<>*pm; cout<<"n Enter the elements : "; for(i=0;i<=*pn-1;i++) { for(j=0;j>pa[i][j]; } } cout<<"nnn Matrix…

0 Comments
July 5, 2020
c++

Program to show fibonacci series by overloading unary operator.

#include #include class fibn { private: int f0,f1,fib; public: fibn(); void display(); int operator++(); }; fibn::fibn() { f0=0; f1=1; fib=(f0+f1); } void fibn::display() { cout<<"n "<<fib; } int fibn::operator++() {…

0 Comments
July 5, 2020
c++

Program to enter the n number of records of the students into the file with the concept of structure concept

#include #include #include int const max =100; struct student_info { char name[20]; long int rn; char sex; int age; }; void main() { student_info obj1[30]; int n,i; fstream infile; clrscr();…

0 Comments
July 5, 2020
c++

Program to implement the concept of pure virtual function.

#include #include class base { private : int x ; float y ; public : virtual void getdata () = 0 ; virtual void putdata () = 0 ; }…

0 Comments
July 5, 2020
c++

Program to check the imortance of virtual function or late binding for the implementation of the inheritance to get required output according to the given access(by using virtual).

# include # include class B { public : virtual void show ( ) { cout <<" nThis is in class B " ; } } ; class D1 :…

0 Comments
July 5, 2020
c++

Program to check the imortance of virtual function or late binding for the implementation of the inheritance to get required output according to the given access(without using virtual).

# include # include class B { public : void show ( ) { cout <<" nThis is in class B " ; } } ; class D1 : public…

0 Comments
July 5, 2020
c++

Program to read an existing file by using object of fstream for reading/writing mode.

#include #include #include #include main() { ifstream vasu; char fn[15],ch; clrscr(); cout<>fn; vasu.open(fn); if(vasu.fail()) { cout<<"nFile with specified name does not exist ... try next attempt..."; getch(); exit(1); } else…

0 Comments
July 5, 2020
c++

Program to create a text file by using object belonging to fstream for reading/writing mode.

#include #include #include #include #include main() { ofstream vasu; char fn[15],ch; clrscr(); cout<>fn; vasu.open(fn); if(vasu.fail()) { cout<<"n File Can't Be Opened ... Try Again....."; getch(); exit(1); } else { vasu<<"n…

0 Comments
July 5, 2020
c++

Program to delete a derived class object using a pointer to a base class that has a virtual destructor results in defined behavior.

#include #include class first { public: virtual ~first( ) { cout<<"n DEATH OF OBJECT OF CLASS FIRST" ; } }; class second : public first { public: ~second( ) {…

0 Comments
July 5, 2020
c++

Program to delete a derived class object using a pointer to a base class that has a non-virtual destructor results in undefined behavior.

#include #include class first { public: ~first( ) { cout<<"n DEATH OF OBJECT OF CLASS FIRSTn"; } }; class second : public first { public: ~second( ) { cout<<"n DEATH…

0 Comments
July 5, 2020
  • Go to the previous page
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Go to the next page

Recent Posts

  • How to Change WordPress Password From cPanel in phpMyAdmin
  • WordPress Contributors Propose Blocking FLoC in Core
  • High DA PA Web 2.0 Websites List 2021 BY Digital Ranger
  • Introduction to Information Technology
  • Write a program to sort elements of given array having ‘n’ numbers of element, using Selection sort.
  • Write a program to generate Fibonacci series with the help of recursion.

Newsletter

Get all latest content delivered to your email a few times a month. Updates and news about all categories will send to you.
Email is required Email is not valid
This field is required
Thanks for your subscription.
Failed to subscribe, please contact admin.

Follow Us

  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab

digitalranger.in

Recent Post

  • How to Change WordPress Password From cPanel in phpMyAdmin
  • WordPress Contributors Propose Blocking FLoC in Core
  • High DA PA Web 2.0 Websites List 2021 BY Digital Ranger

Newsletter

Get all latest content delivered to your email a few times a month. Updates and news about all categories will send to you.
Email is required Email is not valid
This field is required
Thanks for your subscription.
Failed to subscribe, please contact admin.

Contact Info

  • Phone:+91 885 123 8176
  • Email:[email protected]Opens in your application
  • Website:digitalranger.in
  • Skype Call UsOpens in your application
© 2021 Digital Ranger. All Rights Reserved With Love by Digital Ranger