What is C++ ..?
C++ is an object oriented programming language which is developed by Bjarne stroustrup at AT&T bell laboratories in the early 1980's.It's lower level and powerful language and It's a newer language based on C,that adds more modern programming language features that make it easier than C.
What is C++ used for. ?
C++ is a general purpose programming language.It can be used to create small programs or large applications. It allows you to create programs to do anything you need to do.
The most important facilities that c++ adds on C are classes, inheritance,function overloading,operator overloading. these features enable creating of abstract data types, inherit properties from existing data types and support polymorphism, thereby making c++ a truly object oriented language.
Application of C++:
C++ is a versatile language for handling very large programs. It is suitable for virtually any programming task including development of editors, compilers, databases,communication systems and any complex real life application systems.
C++ is able to map the real world problem properly, the c part of c++ gives the language the ability to get close to the machine-level details.
C++ allows us to create hierarchy related objects, we can build special object oriented libraries which can be used later by many programmers.
C++ programs are easily maintainable and expandable.
C++ is an object oriented programming language which is developed by Bjarne stroustrup at AT&T bell laboratories in the early 1980's.It's lower level and powerful language and It's a newer language based on C,that adds more modern programming language features that make it easier than C.
What is C++ used for. ?
C++ is a general purpose programming language.It can be used to create small programs or large applications. It allows you to create programs to do anything you need to do.
The most important facilities that c++ adds on C are classes, inheritance,function overloading,operator overloading. these features enable creating of abstract data types, inherit properties from existing data types and support polymorphism, thereby making c++ a truly object oriented language.
Application of C++:
C++ is a versatile language for handling very large programs. It is suitable for virtually any programming task including development of editors, compilers, databases,communication systems and any complex real life application systems.
C++ is able to map the real world problem properly, the c part of c++ gives the language the ability to get close to the machine-level details.
C++ allows us to create hierarchy related objects, we can build special object oriented libraries which can be used later by many programmers.
C++ programs are easily maintainable and expandable.
A simple C++ program
void main() { cout<<"Hello World"; }
Output : Hello world
Program Features:
Like C, the C++ program is a collection of functions. Every C++ program must have a main(). C++ is a free-form language. with a few exceptions,the compiler ignores carriage returns and white spaces.Like C,the C++ statement terminate with semicolons.
Structure of C++ program:
It is a common practice to organize a program into three separate files.The class declarations are placed in a header file and the definitions of member functions go into another file. This approach enables the programmer to separate the abstract specification of the interface from the implementation details. Finally, the main program that uses the class is placed in a third file which "includes" the previous two files as well as any other files required.
C++ view of a file:
No comments:
Post a Comment