Learn C++ Programming

“C++ is a statically-typed, free-form, (usually) compiled, multi-paradigm, intermediate-level general-purpose middle-level programming language.”

In simple terms, C++ is a sophisticated, efficient and a general-purpose programming language based on C. It was developed by Bjarne Stroustrup in 1979.

Many of today’s operating systems, system drivers, browsers, and games use C++ as their core language. This makes C++ one of the most popular languages today. Since it is an enhanced/extended version of C Programming language, C and C++ are often denoted together as C/C++.


5 Reasons Why you should learn C++?

1. C++ is irreplaceable

With the use of C++ in development of modern games, operating systems, browsers, and much more, it is safe to say that C++ is irreplaceable.Many major applications like

  • Adobe Products like Photoshop, Illustrator, InDesign
  • Amazon – one of the biggest e-commerce sites
  • Autodesk products for Computer Aided Design
  • Facebook – social networking sites are heavy C++ centric products.

Moreover, the fact that there’s a huge community improving C++ on every iteration means that it is only expected to be used even more in the coming future.

2. You learn the internal architecture of a computer

Since C++ is a middle-level language, you will write code that interacts directly with the internal hardware of the computer.

You’ll learn how the computer memory really works, how information is stored in them, how you can retrieve them and so on.

It is sure to expand your knowledge on the architecture of the computer.

3. Over 600,000 C++ repositories on Github

Github, the leading open source collaboration platform, has over 600,000 repositories for C++ alone.

This metric itself proves the worth of C++ in the open source community as well.

Be it gaming, graphics, windows applications, you can find tons of great open source projects extensively used today. And, you can always create your own.

4. 60% Stack Overflow Answer rate and active community

Likewise, with over 400,000 C++ questions asked on Stack Overflow, the number one Q&A platform for developers, more than 60% questions have been answered.

The number of questions asked and the percentage of them answered shows the interest and active support for C++ today.

So, you can expect many great developers to help you solve real-life problems using C++.

5. C++ job opportunities and salary

C++ developers can expect an average of yearly $100,000 salary with over 7,700 jobs advertised every month.

The requirement of jobs comes mostly from game development, rendering engines and the windows applications.


4 Things to Know Before you Code in C++

1. C++ cannot be learned in a day

Learning any language takes time and that holds, even more, truth for C++.

If you are here to learn C++ in a day, then you’re going to end up facing failure.

To be honest, there’s no definite time to complete learning C++ and someone who says they can, are simply lying.

You only start learning with regular practice and dedication. So, I suggest you invest valuable time learning C++.

2. Learning C++ can be hard.

Since it’s not a high-level language, learning C++ can get overwhelming when you start and you’d need to be prepared to put thoughtful hours to learn the basics.

But, there’s no need to panic.

We offer plenty of resources and easy C++ tutorials available on coderforevers to get started for beginners.

Also, there are numerous support communities that will help you when you are stuck.

3. No, you don’t need to learn C before C++

People have different theories whether one should learn C before C++ or not. If you ask me, it isn’t a must. You can easily start with C++ and that’s what I did myself.

If you already know C, you will have a head start in learning C++ as they have similar attributes like syntax and semantics.

4. Don’t wait for the next C++ release

Since a new iteration of C++ is due late 2017, a lot of people ask whether it would be better if they wait until the next release before learning C++ or not.

The answer is NO.

Though there are a lot of additions and improvements planned for the next releases, the core principles are the same. So, it would be wise to invest your time now.


Compile and run C++ programming on your OS

C++ is completely free and readily available on all platforms.

Follow the tutorial below for running C++ on your computer.

There are multiple compilers and text editors you can use to run C++ programming. These may differ from system to system.

If you want a quick start, you can also run C++ program online.

FLOW CONTROL

if…else Statement
for Loop
do…while Loop
break & continue
switch Statement
goto Statement

FUNCTIONS

Functions
Function Types
Function Overloading
Default Argument
Storage Class
Recursion

STRUCTURES

Structure
Structure and Function
Pointers to Structure
Enumeration

ARRAYS & STRING

Arrays
Multidimensional Arrays
Function and Array
String

OBJECT & CLASS

Objects and Class
Constructors
Objects and Function
Operator Overloading

INHERITANCE

Inheritance
Function Overriding
Multilevel Inheritance
Friend Function
Virtual Function
Templates

POINTERS

Pointer
Pointers and Arrays
Pointers and Functions
Memory Management