Skip to content

CPP Programms

  1. Home>
  2. CPP Programms>
  3. Page 2

CPP Program To Find The Length Of The String

  • Post author:admin
  • Post published:August 9, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

A simple Program to find the length of the string without using the predefined string function. This will not count the null character. #include<iostream.h> #include<conio.h> void main() { clrscr(); int…

Continue ReadingCPP Program To Find The Length Of The String

String Functions In CPP

  • Post author:admin
  • Post published:August 9, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

1. strlen() - This function returns the length of the string as seen in the output. This function does not return the null character(if there is space between strings it…

Continue ReadingString Functions In CPP

Do-While Loop In CPP

  • Post author:admin
  • Post published:August 9, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

Do while loop condition fails: one output  when we use do while loop it gives us an advantage that even the condition fails it gives at least one initial output…

Continue ReadingDo-While Loop In CPP

Destructor In CPP

  • Post author:admin
  • Post published:August 9, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

Destructor: Destructor is a member function of a class. It has the same name as a class but followed by a tilde sign (~).  It does not have any return…

Continue ReadingDestructor In CPP

Friend Function In CPP

  • Post author:admin
  • Post published:August 8, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

To access personal data of class we use the friend function. The friend function is not the member of the class but still, we can access its members. For calling…

Continue ReadingFriend Function In CPP

CPP Program For Prime Number

  • Post author:admin
  • Post published:August 8, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

#include<iostream.h> #include<conio.h> void main () { clrscr(); int n,i,x=0; cout << "enter any number" << endl; cin >> n; for(i=2;i<n;i++) { if(n%i==0) { x++; } } if(x==0) { cout <<…

Continue ReadingCPP Program For Prime Number

CPP Program For Factorial

  • Post author:admin
  • Post published:August 8, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

#include<iostream.h> #include<conio.h> void main() { clrscr(); long a,b,c=1; cout << "enter any number" << endl; cin >>a; for(int i=1;i<=a;i++) { c=c*i; } cout << c << endl; getch(); } Output:…

Continue ReadingCPP Program For Factorial

CPP Program For Binary Search

  • Post author:admin
  • Post published:August 8, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

A user is asked to enter 5 elements for searching. Then it will ask you to search that particular number. And it will display its position if the number present…

Continue ReadingCPP Program For Binary Search

Random Numbers Between 1 to 100

  • Post author:admin
  • Post published:August 7, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

C++ program to generate random numbers between 1 and 100.  For random() function, stdlib.h header file is required.  randomize() function will generate different random numbers each time you run the…

Continue ReadingRandom Numbers Between 1 to 100

Method Overriding in CPP

  • Post author:admin
  • Post published:August 7, 2018
  • Post category:CPP Programms
  • Post comments:0 Comments

Method Overriding- When a function with the same name in the base and derived class is there then the base class function will be overridden(means ignored) and derived class function…

Continue ReadingMethod Overriding in CPP
  • Go to the previous page
  • 1
  • 2
  • 3
  • 4
  • Go to the next page

Recent Posts

  • Hello world!
  • How to publish the first blog post | Get Indexed | Google
  • 8 Ways to make money through blogging|Passive Income
  • Build a strong blogging brand | Best tips for blogging
  • Add Facebook page plugin to the blog

Recent Comments

  1. A WordPress Commenter on Hello world!
Copyright [oceanwp_date] - Design by Unique Ratlam Ajanta Talkies Road

WhatsApp us