Requirements prior to beginning,You need the following two things to begin using C++:
- You can use a platform to write C++ code, such as Notepad or an IDE like VSCode.
- Using a compiler, such as GCC, you may convert your high-level C++ code into a low-level language that the computer can understand.
An IDE is ?
Integrated Development Environment is referred to as IDE.
It is nothing more than a text editor that has been upgraded to make it easier to write code that is cleaner and more effective.
It aids in highlighting specific areas of your codes when a semicolon or bracket is absent and helps you distinguish different parts of your codes with different colours.
There are many IDEs available, such as DEVC++ or Code Blocks, however for this lesson series, we suggest using VS Code.
- Installing VSCode
- Visit https://code.visualstudio.com/download
- Click on the download option as per your operating system.
- After the download is completed, open the setup and run it by saving VS Code in the default location without changing any settings.
- You will need to click the next button again and again until the installation process begins
How do compilers work?
A compiler transforms the code into a low-level language that our computer can understand in order to run a programme written in a specific language, which is typically high-level.
There are many compilers available, but for the purposes of this course, we will instruct you to use MinGW because it will meet all of our needs and is also endorsed by Microsoft.