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.

Concepts Of C++ ...

Later, we discussed about the features of Object Oriented Programming (OOP). In this chapter, we are going to learn about the concepts that can be implemented by this paradigm, not in detail but a mild touch. We will be doing this in detail in the upcoming blog.

CONCEPTS:-

1. Class and objects
2. Data Abstraction
3. Encapsulation and Data binding
4. Data Hiding
5. Polymorphism and overloading
6. Inheritance and reuse-ability
7. Dynamic binding
8. Message passing

These concepts of OOP enable us to modify, give security and new mode of programming to our program.

These concepts we are going to deal, when we will be handling with "class".

Till then do remember these features and concepts.



Tuesday, 24 March 2015

Why C++ Programming ?

As the word defines itself "C + +" ,i.e "C Plus Plus" , quite similar like increment operator(++) in C, which means a step ahead of C language. This gives a whole picture that C++ includes all the features of C but along with it, it is a step ahead with new features.

As a whole we can say, C is the Subset of C++ ; where as C++ is the superset;



The main feature of C++ that makes it differ from C is that it comes with Object Oriented  Programming (OOP) paradigm where as C is a POP (Procedural Oriented Programming) or FOP (Function Oriented Programming).

OOP is a programming paradigm that enables to modularize the program by creating the memories for both data and functions that can be bind into one single unit and can used as templates and enables us to create such copies on demand.

OOP features;-

1.Follows bottom up approach.
2.More priority to data rather than procedure or algorithms.
3.Hide and give security to data from external user.
4.Data can only be fetched or access by what is known as methods or functions.
5.Program is divided into what is known as objects. 
6.Functions may communicate with each other through objects.

POP is a programming paradigm that gives more priority to procedure or algorithms.

POP features:-

1.Follows top-down approach.
2.More priority to procedures and algorithms.
3.No security and data can be accessed by outside programmer.
4.Program is divided into functions.
5.Functions may communicate through functions.

So, from the above  knowledge, we can conclude that C++ gives the flexibility to the users to use the language either POP or OOP .

Popular Posts

Recent Posts

Total Pageviews

Categories

Unordered List

Text Widget

Powered by Blogger.

Unordered List