C++ -
Developer - ISO/IEC JTC1 COMMITTEES.
First appeared -23/05/1995
File name extensions - .java,.class,.jar.
C++ is a general-purpose case sensetive programming language that supports procedural, object oriented, and generic programming. it is based on the c language. most of c is a subset of C++. so that most c program can be compiled using C++ compiler.
c++ is use by hundreds of thousand of programmers in essentially every application domain. In adobe system all major applications are devloped in C++ photoshop and image ready, illustator, acrobat, in design,golive. amazon.com , facebook.com,google, hp,microsoft,mozilla ,nokia,ibm and more companies uses c++ language.
C++ is a general-purpose case sensetive programming language that supports procedural, object oriented, and generic programming. it is based on the c language. most of c is a subset of C++. so that most c program can be compiled using C++ compiler.
c++ is use by hundreds of thousand of programmers in essentially every application domain. In adobe system all major applications are devloped in C++ photoshop and image ready, illustator, acrobat, in design,golive. amazon.com , facebook.com,google, hp,microsoft,mozilla ,nokia,ibm and more companies uses c++ language.
In c++ oops concepts is very popular or very important. oops stands for object oriented programming language. in oops concepts are classes, object, encapsulation, polymorphism, inharitence.
FEATURES OF C++ -
- SIMPLE.
- OBJECT ORIENTED.
- RICH LIBRARY.
- FAST SPEED.
- MID-LEVEL PROGRAMMING LANGUAGE.
- PORTABLE.
- POINTERS.
- RECURSION.
- COMPILER BASE.
- EXTENSIBLE.
versions of c++ -
Year C++ Standard Informal name
1998 ISO/IEC 14882:1998[26] C++98
2003 ISO/IEC 14882:2003[27] C++03
2011 ISO/IEC 14882:2011[28] C++11, C++0x
2014 IClang (clang++)
SO/IEC 14882:2014[29] C++14, C++1y
2017 ISO/IEC 14882:2017[12] C++17, C++1z
2020 to be determined C++20,[20] C++2a
C++ compilers -
- AMD Optimizing C/C++ Compiler (AOCC)
- Arm Compiler for Linux (ACfL)
- C++Builder (classic Borland, bcc*)
- Turbo C++ (tcc)
- CINT
- Cfront
- comeau C/C++
- Cray C/C++ (CC)
- Intel C++ Compiler
- Visual C++ (cl)
--------------------------------------------------------------------
c++ basic programs -
Q1) write a program in c++ to print hello world.
-->
#include <iostream>
int main()
{
std::cout << "Hello World";
return 0;
}
output - Hello World
------------------------------------------------------------------
Q2)write a program in c++ to perform addition of two number.
--->
#include <iostream>
using namespace std;
int main()
{
int firstNum, secondNum, thirdNum;
cout << "Enter two number: ";
cin >> firstNum >> secondNum;
thirdNum = firstNum + secondNum;
cout << firstNum << " + " << secondNum << " = " << thirdNum;
return 0;
}
output - Enter two number: 6
4
6 + 4 = 10
----------------------------------------------------------------------------
Q3) write a program in c++ to swapping of two number using third variable.
-->
#include <iostream>
using namespace std;
int main()
{
int a = 4, b = 2, c;
cout << "Before swapping." << endl;
cout << "a = " << a << ", b = " << b << endl;
c = a;
a = b;
b = c;
cout << "\nAfter swapping." << endl;
cout << "a = " << a << ", b = " << b << endl;
return 0;
}
Output --
Before swapping.
a = 4, b = 2
After swapping.
a = 2, b = 4
4 Comments
Good
ReplyDelete👍
ReplyDeleteCp
ReplyDeleteFantastic man
ReplyDelete