Skip to main content

Introduction

Let's Begin

C++ is an easy and one of the most popular programming languages for beginners. It's an extension of the C programming language and includes some additional features. It is being widely used in software development, game development, and system programming.

C++ is like a versatile toolbox for beginners, where you can build anything from simple toys to complex machines in the world of coding.

Do you know which companies use C++ in their code base?
Microsoft, Google, Adobe, Bloomberg, Facebook etc.

These are just a few examples, and C++ is utilized in various domains by companies of all sizes due to its versatility, performance, and low-level control over hardware and system resources.

It is also one of the most widely used programming languages by Competitive Coders because of its speed, memory management, standard libraries and most importantly its community and support.


Now, let's dive in and start with our first C++ program.

#include<iostream>

using namespace std;

int main(){

    cout << "Welcome to Learn Yard ..!";

    return 0;
}

Output :

Welcome to Learn Yard ..!

This is a very basic program to program to print a statement. But don't get worried if you are not able to understand it , we will learn everything in depth.


Now ,we will understand about the basic structure and skeleton of a C++ Program.

#include<iostream>

using namespace std;

int main(){

    ...

    return 0;
}

This is the basic format that we have to remember to run most of the C++ programs , ...(part) is where our main code is written between the curly brackets.


Some important points on which you should focus before we go in depth of each topic:

Be Consistent

To become a skilled programmer , consistency plays an important role . Learning slowly , steadily and regularly should be your main aim.

Don't be afraid of coding

Definitely , in the initial phase you will face difficulties but don't lose hope and just trust the process . Coding is a skill which will gradually develop with time.

★ It's just another language

As we humans communicate among ourselves either in Hindi , English , Kannada , Telugu etc . , to interact with computers we need programming languages like C++ , Java , Python etc.
Since we follow several grammatical rules while communicating , similarly we have to take care of syntax , structure and format of the code.

Programming is not about what you know; it's about what you can figure out.