This document provides an introduction to C++ programming. It discusses that C++ is a programming language based on C that adds object-oriented programming features. It was created in the 1980s by Bjarne Stroustrup at Bell Labs to combine advantages of other languages like BCPL, Simula, and C. C++ became one of the most widely used languages in the 1990s and added advanced features like operator overloading, exceptions, and templates over time. It discusses the stack as an example of object-oriented programming in C++ and principles like encapsulation and inheritance. Finally, it lists portability as an advantage of C++.
This document provides an introduction to C++ programming. It discusses that C++ is a programming language based on C that adds object-oriented programming features. It was created in the 1980s by Bjarne Stroustrup at Bell Labs to combine advantages of other languages like BCPL, Simula, and C. C++ became one of the most widely used languages in the 1990s and added advanced features like operator overloading, exceptions, and templates over time. It discusses the stack as an example of object-oriented programming in C++ and principles like encapsulation and inheritance. Finally, it lists portability as an advantage of C++.
This document provides an introduction to C++ programming. It discusses that C++ is a programming language based on C that adds object-oriented programming features. It was created in the 1980s by Bjarne Stroustrup at Bell Labs to combine advantages of other languages like BCPL, Simula, and C. C++ became one of the most widely used languages in the 1990s and added advanced features like operator overloading, exceptions, and templates over time. It discusses the stack as an example of object-oriented programming in C++ and principles like encapsulation and inheritance. Finally, it lists portability as an advantage of C++.
Shifa Z. Hakim , Attahar Y. Sheikh, Rahul K. turankar
Department of Computer Engineering Government Polytechnic, Gadchiroli Shifahakim007@gmail.com,attaharsheikh68@gmail.com,luckyturankar358@gmail.com
Abstract - C++ is a statically typed, compiled, general-
purpose, case-sensitive, free-form programming language that supports procedural, object-oriented, and generic programming. C++ is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features. C++ was developed by Bjarne Stroustrup starting in 1979 at Bell Labs in Murray Hill, New Jersey, as an enhancement to the C language and originally named C with Classes but later it was renamed C++ in 1983.C++ is a superset of C, and that virtually any legal C program is a legal C++ program. Note − A programming language is said to use static typing when type checking is performed during compile-time as opposed to run-time.
Keywords-Auto, Case, operator, programming, C++,C
I. Introduction
What is meant by C++ programming?
C++ (pronounced "see plus plus") is a computer programming
language based on C. It was created for writing programs for many different purposes. In the 1990s, C++ became one of the most used programming languages in the world. The C++ programming language was developed by Bjarne Stroustrup at Bell Labs in the 1980s, and was originally named "C with classes". The language was planned as an improvement on the C programming language, adding features based on object-oriented programming. Step by step, a lot of advanced features were added to the language, like operator overloading, exception handling and templates.
C++ (pronounced "see plus plus") is a computer programming
language based on C. It was created for writing programs for many different purposes. In the 1990s, C++ became one of the most used programming languages in the world.The language was planned as an improvement on the C programming language, adding features based on object- oriented programming. Step by step, a lot of advanced features were added to the language, like operator overloading, exception handling and templates.
Bjarne Stroustrup developed C++ at Bell Labs in the early
1980s to merge the best advantages of several other languages. He wanted to put together the quickness of BCPL, the high-level of Simula, and the universality of Dennis Ritchie’s C. He took inspiration from other languages as well, such as Ada, ML, and ALGOL 68, to create a well-structured, general-purpose language that could compile nearly all C programs without changing their source code. C++ is so flexible that is often nicknamed the "Swiss Pocket Knife of Programming Languages" (although this nickname is shared by Python as well).
Bjarne Stroustrup developed C++ at Bell Labs in the early
1980s to merge the best advantages of several other languages. He wanted to put together the quickness of BCPL, the high-level of Simula, and the universality of Dennis Ritchie’s C. He took inspiration from other languages as well, such as Ada, ML, and ALGOL 68, to create a well-structured, general-purpose language that could compile nearly all C programs without changing their source code. C++ is so flexible that is often nicknamed the "Swiss Pocket Knife of Programming Languages" (although this nickname is shared by Python as well).
When C++ was new, object-oriented programming was just
coming on the scene. This revolutionary type of computer programming transformed the coding world with its promise of more sophisticated virtual data types and objects. In object-oriented programming; an object is a data type that has both data and functions inherent in its design. Prior to the advent of object-oriented programming, programmers typically saw a code base as composed of individual command line instructions. The identification of objects with data and functions built in led to a new way of packaging and automating code work.
For an excellent example of object-oriented programming in
C++, one of the most notable and useful features of the language was the C++ stack. The C++ stack is a class in C++ that has the following characteristics – it is a virtual last in first out sequential storage container that has a defined set of elements. The functions ‘push’ and ‘pop’ either push a new item into the bottom of the stack or pop the first available item from the top of the stack. Programmers have utilized the C++ stack in many different ways to achieve goals involving variable evaluation and functional operations within a code base. The language also applies principles of encapsulation, which identifies usage models, and inheritance, where one class can inherit certain attributes or properties from another.
Advantages of C++
1. Portability
C++ offers the feature of portability or platform
independence which allows the user to run the same program on different operating systems or interfaces at ease.