Saturday, 4 April 2015

Lets Start with c++...

Lets Start with c++...

C++ coding is done on IDE- Integrated Development Environment. It is a software application that provides a platform to run ,compile and execute High Level Programming language.

For C++ the IDEs are Dev C++ (recommended), Turbo C++, Borland C++ etc.
Every IDE has compilers which compile the written codes and check the errors and verifies whether the codes are following the correct logic, syntax etc which are required to run and execute the program successfully.

Below are the following formats that are required to follow to make the programs(coding) syntaxtically.

1. Header file declaration

Header files are the pre-compiled or pre-coded files with correct logic and syntax that includes in-built functions, class, structure etc. , which may directly or indirectly can be used in the program to avoid the program coding from being lengthy and hence make the execution time fast.
These files are stored in lib folder (library folder) of your respective IDE.

Header files comes with the extension ".h"(dot H).

For eg;
 if XYZ is a header file then it comes with "XYZ.h".

Syntax to be used in program to use header file:

#include<XYZ.h>

#include-(hash include) This is called pre-processor directives which means that these are the codings which are already been compiled and processed by the IDE compiler.

#- It is used as linking and loading the header files i.e, it act as a interface between the library file and programming.

include- This includes all the in-built functions, class and structures which are packed in the header file closed in < ......>.

Mostly used header files in C++:

#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<stdio.h>

Next Blog in-built functions and uses of the above header files.

0 comments:

Post a Comment

Follow by Email

Popular Posts

Recent Posts

Total Pageviews

Categories

Unordered List

Text Widget

Powered by Blogger.

Unordered List