Hello
Guys..!!! Welcome back. We are going for next step which is update version of
C. Name is C++. We will start from
introduction. So here we go....!!!!
C++ is a
general purpose language. It is also called a middle level language and similar
to C language. This language was developed by Bjarne stroustrup in AT & T
bell laboratories (American Telephone & Telegraph Company). he called this
language “C with classes”. It is based
on C language.
“++” sign defines to incremental variable
(improvement of c). Most of C is a subset of C++. This language is widely used
for teaching. It is enough for teaching basic concept. Many companies are using
this language in their product in present like facebook, Google, Mozila, Amazon,
Microsoft and many more(also using python language).
Its standard
is the same in any platform and satisfied by software engineers. Efficiency is
more than C. Purpose of this language is
to precisely define a series of operations that a computer can perform to
accomplish a task. One thing that most valuable is that it interfaces well with
other languages.
Structure of C++ :-
/* print hello in screen*/
#include<iostream.h>
using namespace std;
int main()
{
Cout<<”hello”;
Return 0;
}
1)
/*...............*/
This symbol is known for
comment.
2)
#include<iostream.h>
It is called a
pre-processor command which tells compiler to include iostream.h file.
3)
namespace std;
In order to access its functionality we
declare with this expression. This line is called standard library in c++.
4)
Main()
a. It’s called a main function which we
discussed in C.
5)
{}
It’s called a body of the
function.
6)
Cout<<___;
It is a library function
that is used to print data of the screen.
7)
Return 0;
It means Return value
zero to the Operating System.
This is just
introduction of C++. My next post will be more exiting. So wait for my next
post.
To Like Our Facebook Page > NewAgeInformers
Comments
Post a Comment