Getting started with C++ Programming language !

in #programming8 years ago

C++ is a programming language which was an extension to a previously know Language C. It is an Object Oriented Programming Language and is also used in embedding hardware devices.

C++.jpg

I have been planning to start C++ programming tutorials for a very long time but couldn't find time and audience targeting. After a lot of time today i finally took an initial step towards starting this very long journey !

Getting Started
When i started learning coding, the only thing that always annoyed me was the history and theory of the language which was all over the internet, it literally gave me head aches i always thought how the hell will it even help me in developing apps ? 😂😂 I am lucky that compiler never asked me to name its developer or else i was doomed 😂
So i prefer not to annoy anyone and move on towards the actual content of my writing !

Requirements

  • A C++ compiler
  • Consistency
  • Hard work
  1. C++ Compiler
    We know that all of the programming languages used in modern era are high level languages which are not understood by our machine directly , They require a compiler to convert the high level code into machine language which the machine can understand and work according to it ! So the compiler for C++ which i use and prefer all of you to use is DEV C++ Here is the link https://sourceforge.net/projects/orwelldevcpp/
    index.jpg
    Once you've downloaded the compiler,
    Install it, Run it and when you've opened it, You're good to go !
  • Basic Understanding
    Whenever we start writing a C++ code we Include Header files into it first of all. There are different types of header files depending upon the type of the program. After including the header files, we add the library for C++ which is std library. Always keep in mind that every line of code in C++ ends with a semi-colon ";".

Header files

  1. Header files are always initiated with a "#" symbol.
  2. Header files always contain the word Include after # symbol.
  3. Header files always contain "<>" brackets after the word include.
  4. Header files are always Included at the start of the program.
  5. The syntax of including Header files is #Include<Name of header file>
  6. There are Two Basic header files which are used in every program
    (1) # include < iostream > (Stands for input/output stream)(2) # include < conio.h > (Stands for console input/output)

Both headers are used for the program which deal with input and output and every program deals with input and output

Here is how headers are included :-
headers.PNG

Including Library
After adding the header tags the next thing we need to add is the C++ library And its syntax is Using namespace std;

library.JPG As stated earlier we closed the tag with a semi-colon !

Conclusion

  • Every program starts with a header tag and header files
  • Including library is a Must
  • End every line with a semi-colon ";"

What's next ?
In the next lesson, we'll be covering the body of a C++ program. We will execute our First Cpp Program Yaaay!!

Upvote if you find this helpful :)
Plus I'll also be making video tutorials on "How to code C++" If my Content gets enough audience :)

Sort:  

Dev C++ doesn‘t seem to be maintained anymore. For anyone starting C++ Development on Windows, I‘d recommend to use Visual Studio Community Edition (which is free) or have a look at CLion from Jetbrains.

It has artificial intelligence which automatically corrects your grammatical mistakes :)

Coin Marketplace

STEEM 0.04
TRX 0.33
JST 0.080
BTC 61714.34
ETH 1618.58
USDT 1.00
SBD 0.40