Monday, October 22, 2018

Introduction of c++

Introduction to C++

C++, as we all know is an extension to C language and was developed by Bjarne stroustrup at bell labs. C++ is an intermediate level language, as it comprises a confirmation of both high level and low level language features. C++ is a statically typed, free form, multiparadigm, compiled general-purpose language.
C++ is an Object Oriented Programming languagebut is not purely Object Oriented. Its features like Friend and Virtual, violate some of the very important OOPS features, rendering this language unworthy of being called completely Object Oriented. Its a middle level language.
We start the tutorial series with one of the simplest programs that can be written in the C++ language.

 // A hello world program in C++

 #include<iostream>
 using namespace std;

 int main()
 {
  cout << "Hello World!";
  return 0;
 }

The hello world program is one of the simplest programs, but it already contains the fundamental components that every C++ program has. Don’t be overwhelmed, we will take a look at the code line by line.
Type the code in your favorite editor (always type, don’t use cut/paste. This is better for learning purposes).
Save the program with the name: hello.cpp.
After saving the source code you can compile it. It should compile without any errors.
To know details of 

hello world program in C++ just click onit

No comments:

Post a Comment

Popular Posts