C++ PROGRAMMING LANGUAGE TUTORIAL FOR BEGINNERS
Desiliciouskitchen-The C++ programming language is one of the most widely used programming languages today. Since its first release in 1985 by Bjarne Stroustrup, C++ has developed into a multi-purpose programming language that can be used to create various applications, especially desktop applications. The C++ language itself is a development of the popular C language. One of the basic differences between C and C++ is the support for object-oriented programming. The C++ language already supports object-based programming needed to create complex applications.
Game engines like Unreal Engine, Unity, CryEngine, or Construct. using C++ as the language of instruction. So if you intend to become a game programmer, C++ is the best start. In addition, C++ is also suitable to be used to create applications that require a lot of hardware access, such as IoT (Internet of Things) devices, embedded systems, to create graphical desktop applications, especially when combined with Microsoft Visual Studio.
Understanding C++ Language
In the initial tutorial on learning C++, we will get acquainted with this programming language, starting from understanding C++, seeing a brief history of C++, and learning what the differences are between C and C++. All of these explanations are very interesting to discuss because they can answer the question “why should I learn C++?”
Basic Structure of C++ Language
This section will discuss the basic structure of the C++ language, including the meaning of variables, constants, and how to use the cout and cin commands. The rules for writing a programming language are also known as syntax.
C++ Language Data Types
In this section, we will discuss the types of data types in C++, including the distribution of data types with examples of how to use them.
In simple terms, data types are how we tell the computer to group data according to what the computer understands.
Read This: Learn C Programming Language For Beginners
The data types that we will discuss are char, integer, float/double, boolean, string, array, struct, enum, and pointer data types.
Structure of Conditions and Loops
In this section, we will discuss the C++ programming language commands to create branching program code or also known as conditional structures / logical structures. In C++ there are IF conditions, IF ELSE, IF ELSE IF, and SWITCH / CASE structures. After that we will enter the loop. Loop (or in English known as loop) is a programming concept that is useful for repeating the command line. Here we will discuss how to create loops in C++ using the FOR, WHILE and DO WHILE commands.
How to Create a Function
In designing program code, sometimes we often create code that performs the same tasks repeatedly, such as reading tables from a database, displaying summations, etc. This same task will be more effective if it is separated from the main program and designed into a function. In simple terms, a function or function is program code designed to complete a specific task, and is part of the main program. When translated into Indonesian, this function is also called a function. In this section, we will discuss how to create functions in C++, including learning the difference between parameters and arguments, returning function values, recognizing default parameters to function overloading in C++.
Object Oriented Programming (OOP) C++
One of the fundamental differences between the C and C++ languages is in their support for object-oriented programming. The C++ language already supports the object-oriented programming needed to create complex applications. In simple terms, object-oriented programming is the concept of making programs by breaking problems into separate objects.
Each object seems to have its own world, where an object can have data members and member functions (another term for variables and functions that are in objects). These various objects work together to form one final program. In this tutorial series, we will try to enter the world of object programming in C++ and discuss various things about OOP PHP, starting from understanding objects, classes, data members (properties), member functions (methods), constructors, to types of class derivation (inheritance). Understanding of OOP will be very helpful in deepening C++ skills.