Rabu, 31 Agustus 2022

TUTORIAL C++

 Definition of C++ Programming Language

The C++ programming language is a development of the C programming language and is a general-purpose programming language that may be used to create a variety of applications.

A colloquial term for the C++ programming language is "C with Classes." This is due to the support for object-oriented programming being the primary distinction between the C and C++ languages. In contrast to the C language, which does not support object-based programming, C++ does.

C++ programming logo

The C++ programming language can be used to create desktop applications like antivirus programs, image- and word-processing software, and compilers for other programming languages because it is a general-purpose programming language, which is a programming language that can create various applications.

C++'s Brief History

In 1979, Danish computer scientist Bjarne Stroustrup invented the C++ programming language. The study for a Ph.D. thesis that Stroustrup had previously worked on served as the inspiration for the creation of the C++ language.

At the time, Stroustrup was drawn to the Simula programming language because it was simple to learn and useful for building complex applications. The Simula 67 programming language variation is regarded as the first to implement the idea of object-based programming.

However, it is believed that the Simula language is too sluggish for practical use. The BCPL language, on the other hand, is extremely quick but less suited for the development of complicated applications.

Bjarne Stroustrup had difficulties when creating the UNIX operating system while working in the AT&T Bell Labs lab. He sought to take the thesis that had been completed at the time and apply it to the C programming language. Additionally, the C programming language is used to develop the UNIX operating system.

Finally, in 1982, Bjarne Stroustrup started incorporating new capabilities into the C programming language, particularly class support so that the C programming language could make advantage of the object-oriented programming paradigm. Simula as well as other programming languages like ALGOL 68, Ada, CLU, and ML served as inspiration for Stroustrup.

The name of this new language, C++, comes from the increment "++" operator. In programming languages, increment operators are frequently used to raise the value of a variable by one. C++ so signifies the inclusion of the common C language.

A very well-known book titled C++ Programming Language was written by Bjarne Stroustrup in 1985. At the time, this book emerged as the primary resource and "unofficial standard" for the C++ programming language. The first C++ commercial compiler was also created in that year.

tutorial C++
photo of Bjarne Stroustrup
(source,https://www.stroustrup.com/)

The C++98 standard was eventually published by the ISO standards body in 1998, and was followed by the C++03 standard in 2003.

The C++11 standard was followed by releases of the C++14 standard in 2014 and the C++17 standard in 2017, respectively. The C++ 20 standard is anticipated to be released at the conclusion of 2020.

This variation in C++ standards won't be as noticeable for simple use. All C++ compilers should continue to use this tutorial.

Why should I learn C++?

The majority of people who read this course will probably be learning C++ because their instructor or lecturer requires it. This is not surprising considering that C++ is a simple language that is frequently used to master the fundamentals of programming and algorithms. Using the Pascal language in addition to the C language is another option (depending on what language the lecturer likes to use).

Even if it is not required by lecturers or for individuals who are self-taught, choosing C++ as the first language or basic language is actually quite helpful. This is thus because many contemporary programming languages have their roots in the C and C++ languages.

It will be quite simple to transition to a more contemporary language like Java, C#, PHP, or JavaScript if you are already familiar with the syntax and principles of writing in the C++ programming language. because all of these languages are derived from C and C++.

The C++ language is useful for learning fundamental programming, but it may also be used to build a variety of applications. In my perspective, game programming—the computer language used to create games—is the most major factor.

Modern video games, particularly desktop games, are already fairly complicated. Game programmers typically require a Game Engine that includes a collection of pre-written software code (referred to as a library). Its purpose is to facilitate the rapid construction of games by eliminating the need to start from scratch.

The most well-known game engines include Construct, CryEngine, Unity, and Unreal Engine. On the List of game engines, you can view a complete list of game engine applications. C++ is the most extensively used programming language, as can be seen on the website.

Therefore, C++ is the best foundational language if you're interested in becoming a game programmer (particularly for desktop games).

In addition, C++ is appropriate for creating software for embedded systems, IoT (Internet of Things) devices, and desktop applications that rely on graphics, particularly when used in conjunction with Microsoft Visual Studio.

Tidak ada komentar:

Posting Komentar