Introduction to Standard C++ : In a Nutshell #1

C++ is a powerful general-purpose low-level programming language that furnishes a wide range of applications and edges.

C++ is a powerful general-purpose low-level programming language that furnishes a wide range of applications and edges.

In this series of C++ course topics, you will learn the complete c++ programming language. I will also share the most useful tips and tricks while writing code and learning the C++ language.

and you will also learn why should learn the basics of computer workings? before learning to code a programming language.

So, this is a c++ full course free here. Have fun!

A little intro to C++

C++ was invented by Bjarne Stroustrap in 1979. It was named “C with Classes” (a better C).

This means C++ is a modified version of the C language that has closed many holes in the C language and provides better type checking and compile-time analysis.

Part of the reason C++ has been so successful is that the goal was turning C into an OOP language. So, they can make it for more control over system resources, to make fast programs, memory management, and high performance.

C++ is a low-level language

as the low-level languages are close to the hardware

and the high ones  are far from hardware (logically sounds)

Why learn C++? 

  • C++ is used in the invention of Operating systems, Video games, Browsers, etc
  • It is a movable language than can be used to conceive applications on multiple platforms.
  • It gives a programmer a high level of control over system resources and memory.
  • C ++ can have a lot of control over how you use computer tools, so in the right hands, its speed and ability to use tools for free should be able to surpass other languages.
  • Due to its C++ functionality is often used to develop game engines, games, and desktop applications.

What will you learn after completing this series of C++ course blog tutorials?

In this course, we will cover all the fundamental concepts of c++ programming step by step.

By the end of this course, you will be comfortable programming in this language.

A lot of examples catered towards beginners. The quiz will revise your knowledge after reading a topic.

If you are excited to learn c++? If the answer is yes, let’s begin.

Writing first C++ program – Hello World

Let’s write our first C++ program. we will write a simple “Hello World ” program that displays

Hello World

on the screen.

to understand the below code structure see the later next lesson

#include <iostream>

int main()

//this will print hello world on console
std::cout<<"Hello World"; 
return 0;

and save the file as helloworld.cpp 

this will print simply “Hello World” on the screen as output.

there are convenient ways for writing this code that we will also learn in later chapters.

In the next lesson, we are going to set up the environment for coding in C++. Where we will see the process of setup the MinGW and setting up the  VSCode for c++ like extensions and running code inside its terminal or into the windows command prompt

Setting Up Environment

To code in the c++ language, we have to set our computer/machine environment for it. So, we need to set-up MinGW GCC/G++ compiler.

For this, I have done it for you in this article.

How to Install MinGW GCC/G++ Compiler for Windows

Working on the Program

If you do not understand everything in this section, that’s okay. we will see these topics in detail in later chapters

Let’s see the different sections of our first Hello World program

  • .cpp extension
    .cpp is used to saving files in the c++ language.
  • #include <iostream>

    int main() {
    … // your code here ….

    #include is used to import external files in our program. Here, we are including the iostream file ( as you may have seen stdio.h file ) to perform input/output operations.
  • The main() Function

    The main() function is the entry point of the program. A valid C++ program must include the main() function.
  • std::cout
    std::court<<“Hello World”;

    This code prints the text Hello World inside quotation marks.
  • The return 0 Statement
    return 0;
    The main() function ends with this statement.

The below diagram will be more helpful to you

Working of the C++ Program
Working on the C++ Program

The Basic Format of a C++ Program

C++ programs are comparatively long and it takes multiple lines even to write a simple program.
For now, Remember this basic structure of code

#include <iostream>

int main() {

// write code here 

return 0;


Things to remember about a C++ Program Code Structure

There is only a way to get better at something is to practice and programming also follows that rule.

  • The main() function will be the starting point of a C++ program.
  • We will write our code in between curly brackets {…}
  • The function ends when return 0; reached.

In the next lessons, we will learn the fundamentals of C++ programming.

Share your love
Lamba Pankaj
Lamba Pankaj
Articles: 14

Leave a Reply

Your email address will not be published. Required fields are marked *

I'm not a robot *Time limit exceeded. Please complete the captcha once again.