Introduction: C++ (pronounced
“ see plus plus”) is a general purpose
programming language developed by “Bjarne
Stroustrup” as an extension to C language, starting in 1979 at Bells labs. C++
was originally named “C with
Classes”, adding object oriented features, such as Objects, Classes, Abstraction,
Encapsulations, Inheritance, Polymorphism, Overloading and other enhancements
to the C programming language
C++ is one of the most popular programming languages that
runs on variety of platforms like Windows, UNIX, Mac OS etc
- Now let’s create our first simple program to Calculate the sum of two numbers in C++ Language
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,sum;
cout<<"Enter first number= ";
cin>>a;
cout<<"Enter second number= ";
cin>>b;
sum=a+b;
cout<<"\nSum of "
<<a<<" and "<<b<<" = "<<sum;
getch();
}
Output:
Enter first number=45
Enter second number=55
Sum of 45 and 55 = 100
Now over to you:
"If you like my work; you can appreciate by leaving your comments,
hitting Facebook like button, following on Google+, Twitter, Linked in and
Pinterest, stumbling my posts on stumble upon and subscribing for receiving
free updates directly to your inbox . Stay tuned and stay connected for more
technical updates."
If you have any question about any post, Feel free to ask.You can simply drop a comment below post or contact via Contact Us form. Your feedback and suggestions will be highly appreciated. Also try to leave comments from your account not from the anonymous account so that i can respond to you easily..