115
0
C++

Introduction to C++

115
0
Introduction to C++

An Introduction to C++

C++ originally called “C with Classes” is designed by Bjarne Stroustrup in 1979 AT & T Bell Laboratory in Murray Hill New Jersey, USA. C++ is an advanced version of the ‘C’ language; having a new feature with advanced technology called OOPs (Object Oriented Programming). As beginners think, C++ is a very difficult language, it is not so for those people who already know about the C language or any high-level language. The commercial version of C++ becomes available in 1983. C++ is a superset of C. C++ can also be considered a new language that supports almost all the syntax of the C language. C++ is built on C because of the following reasons:

  • C’s suitability to system programming.
  • Its widespread availability and
  • Its close ties with the UNIX operating system.

There are mainly two aspects of C++ as a successor to C. The first one is C++’s superiority to C as a general-purpose programming language due to its new features. The second is the success of C++ as an OOP language. C++ supports almost all the syntax supported by C. But C++ does not give weightage to a few functions of C such as bitwise operations. Also, C++ has more versatile and valuable features such as the improved approach to Input/Output, single-line comments, constant’s declaration, etc.

Since C++ is based on C. it retains much of its features including the rich operator set, type set, and extensibility. C++ compilers are available on many different systems and machines and are highly compatible with existing C programs. The language began as an enhancement to C, first adding classes, then incorporating features like virtual functions, operator overloading, multiple inheritances, templates, and exception-handling features.

Elementary uses of C++:

The point of C++ is to design computer software. Once the basics are learned, it is easy to write computer applications. They may be simple console-based applications that run at the command prompt or graphical applications such as a computer game or web browser. The emphasis is primarily on three types of applications:

• Simple console-based applications – Text-based applications (i.e. command line/ terminal) that can be used mainly to learn some basic C++ skills. There are programs that include calculations like finding the circumference of a circle, computing simple interest and compound interest, applying different operations on the matrix, etc.

• Control Software-In C++ a graphical, virtual autonomous robot can be programmed by using a library called Virtual Robot. Control software is mostly used by Artificial language. Here C++ has a number of such types of functions that control all the operations which an AI language can do.

• Animations, Games, and Other Graphical Applications – a program can be written to generate cartoon animations as well as simple 2D games. All the graphical operations can be easily solved with this language by using the inbuilt functions. Besides this other graphical applications like a ghetto version of Adobe Photoshop can also be written. A library called Goo 2 Games can be used to do this.

xalgord
WRITTEN BY

xalgord

Highly motivated, Hard-working, and Resourceful Programmer. I Love To Explain And Teach Technology, Solve Tech Problems And Learn Something New Every Day.

Leave a Reply