C++ for Beginners: Chapter-1 (Introduction and Setting up the Development Environment)

Note:The programs you will find in this series may differ from other sources because every IDE uses different template for C++(C plus plus)


Hi there!
We are happy to announce the launch of C++ for Beginners — our new series of regular tutorials, blogs and articles to help you step inside the virtual world of C++ programming and coding in general. Whether you are new to programming, or having zero knowledge about code, or having a different base language and wish to learn C++, then give yourself a pat on your back cuz you just arrived at the right destination.

The objective of this series is to shed light (a bright one) on the basics of programming and coding. In the first chapter, we shall briefly introduce you to programming and then guide you to setup your working environment IDE (Integrated Development Environment) which will enable you to write your first C++ program. So let's get started!
What is a programming language?
A programming language is a language which allows you to give a set of instructions to your computer to perform a specific task. In other words, it is the language that computer understands.

About C++ and Why Choose C++:
C++ is an object oriented, compiled programming language invented by Bjarne Stroustrup in 1979 and is the successor of C. It is created with an aim to use it in system and embed programming and for power and efficiency.
But why choose C++ over other languages? Lets have a look

1) It is one of the fast and most powerful language ever created.
2) It has a vast library to choose from.
3) It is widely used in software and game development industries.
4) It provides better functionality than any other language.
5) It is also used in building mobile apps for windows, android and for other platform.
Setting up your environment for writing your C++ programs: Before we set up our environment, we need to be clear about some terms which will help us to understand the process of execution of a program.
1) Middle level language: These types of languages are user friendly and are designed for better understanding of the program. In these languages, most of the keywords are taken from English language. For example: In C++, some of the reserve keywords like if, else, while, for etc. are taken from English language for better understanding.
2) Machine language: This language is only understood by the computer. It is the language of 0s and 1s and is referred to as the binary language. Here, 0s and 1s represent positive and negative electrical signals.
3) Compiler: It is a software which converts middle level language into machine language. It processes it and then gives the output.
The below chart depicts how a compiler works.

Now you have an idea of what exactly an IDE does and how does the execution of an input goes through several stages before displaying the output.Its time to setup our IDE now.
In this series, we will be demonstrating using Turbo C/C++ as our IDE. There are several such software available with just a little difference in their UIs. You can opt for any of them.

1) Download the Turbo C/C++ compiler from this link.2) Open the setup file and install the compiler.3) Open the compiler from the installed root directory.
The home screen of Turbo C/C++ looks similar to this

If you did not see the above screen then don't worry just click File>>New and you will get a blank screen.
With that, we have learnt to setup our coding environment!

We shall soon write our first C++ program and analyze each line of our code in the next chapter.

Until then, goodbye!


If you like this article, then please share it and help us grow.

Понравилась статья? Поделиться с друзьями:
Добавить комментарий