For more free Urdu Tutorials click here: bit.ly/ZcRlXc
Like us on facebook: on.fb.me/13Z3CqS
Follow us on twitter: bit.ly/13Z3LKP
This video is about C++ introduction and installation in Urdu. In this Urdu Tutorials Series I teach you how to program in C++ programming language.
In computer programming, A keyword is a word that is reserved by C++ for a specific use.
Comments are strings that are ignored by the compiler.
Their main purpose is to make notes in a program.
With comments , you can write a clear English (or some other natural language) explanation of the code.
Everything on the same line that follows the '//' is part of the single line comment.
Everything between a '/*...*/' pair is part of the multi-line comment.
Blank lines and spaces are called white space.
The important fact about white space is that the compiler ignores it.
Use whitespace to format your code in a more readable way.
Note that spaces inside a string(e.g., "H E L L O") are not ignored
In the programs we write, we will need to use some code that we did not write ourselves.
These Codes(Library, object files and header files) are made a part of our program by the preprocessor include directive.
Lines that begin with # are processed by the preprocessor before the program is compiled.
The main() Function
Every C++ program must have a main function. it is the entry point for every C++ program; that is, every C++ program starts executing at main.
A statement represents a complete instruction to a computer. To understand your source code, a compiler needs to know when one statement ends and another begins.
Every C++ statement must end with a semicolon(;) (also known as the statement terminator).