Thursday 28 March 2013

Programming In C++...

Hi there once again.

First of all, let me apologize for being out of action for a while. I really had some problems managing all my works. I believe it won't happen again.

So lets move on to programming in C++.

Before I introduce the most basics of C++ programs, let me talk you through one more matter.

We all know that computers are only capable of understanding machine level language or Binary form as it is called. We also know that C++ is a Fourth generation language. This makes it necessary for a mediator or translator to convert the Fourth generation (High level) language to basic or machine level language. This converter is called compiler.
So when you downloaded the C++ compiler, you downloaded a set of several other programs. These programs are mentioned below with their use :


  • Editor      - The Editor is used to write the C++ program. Hence it acts as a platform for you to type                        your C++ program. This program is termed as the Source code.
  • Compiler - The Compiler, as mentioned before, is used to convert the high level language (in this case C++) to machine level language.
  • Linker     - The Linker is used to link the header files required with the main program before the execution of the program.(We will go through the concept of header files shortly!!)
  • Loader    - The Loader is used,as the name suggests, to load the program to the computer memory for its execution.
Thats it!! I know that some of you might be a bit frustrated at the basics and can't wait to get to programming!! So here we go/....

Here is a sample program for you to start with. This is the most basic of all programs in C++:
I am mentioning line numbers in the extreme right corner.

0. //Sample program
1. #include<iostream.h>
2. #include<conio.h>
3. void main()
4. {
5. clrscr();
6. cout<<"Welcome to C++ programming!!!";
7. getch();
8. }


I suggest you spend a good minute or two reading through the program given above and then proceeding.

So in the next blog, We will go through each statement in detail.
See you then!!
Don't forget to subscribe or add yourself as a member to the blog.
Cheerio!!

Monday 15 October 2012

The History Of C++...

Before we go deep in to the programming, it is very essential to know its origin or history.

C++ is a fourth - generation programming language which follows the OOP or Object Oriented Programming concepts. C++ is a super-set of the C programming language.

C++ or ' C with classes' as it was known earlier was developed by          Bjarne Stroupstrup in the 1980's while working in the Bells Labs. Mainly two languages contributed to the design of C++ Hence, it can also be called a hybrid language. C programming language provided the low - level features while Simula67, another programming language gave the concept of classes required by the C++ programming language. C was a procedural language while Simula67 is an Object oriented language.

In June 1988, ANSI/ISO approved the Final Draft International Language Standard for C++.

I am going to explain the OOP concepts here so that we could start with programming in the next post.

The OOP Concepts:

As I mentioned before, C++ is based on OOP concepts. OOP refers to Object Oriented Programming.
In this, a problem is looked in terms of objects rather than the procedure.

Some basic concepts which is common for all OOP languages:

Abstraction : Basically, abstraction refers to the feature in which only essential details of the object are shown and the non - essential details are ignored.

Encapsulation : Encapsulation and abstraction go hand - in - hand. Encapsulation refers to the process of hiding the complexity or the non - essential details or data. In simple words, it hides irrelevant data.

Polymorphism : The term 'polymorphism' has been derived from the Greek words, 'poly' meaning many and 'morphos' meaning forms. So it refers to the flexibility shown by some programs which allows it to be used  in a variety of ways.

Inheritance : Inheritance is a feature of creating a new class with the properties of an existing class with some additional characteristics which is unique to it (new class). Inheritance thus allows the re - usability of the code.

Now you must have guessed the reason behind the URL of this blog......

Hope you like my posts and please keep in touch by subscribing to this blog.
Stay Tuned....

Coming up.... Programming in C++
Don't miss that..

Friday 12 October 2012

Welcome To The World Of C++......

Good Day to all.....
 Nowadays, the interest towards computer programming is increasing at a rapid rate. So are the programming languages. We are all aware of the various programming languages available like Java, C, C++, C#, Python and the list goes on......

So here in this blog, I am going to share all what I know about C++ programming language.

So before we go deep into this subject, I need you all to have a C++ software available in your system.
There are many C++ software providers. I would recommend you to download Turbo C++, Borland C++, or the Dev-cpp. But its up to you. You could select whichever C++ software provider which you feel comfortable with.

Here are the links :-
 Dev-cpp        ----> http://download.cnet.com/Dev-C/3000-2069_4-12686.html
Turbo C++     ----> http://turbo-c.soft32.com/
Borland C++  ----> http://www.brothersoft.com/borland-c++-builder-118249.html

Please feel free to post your doubts if any.......

After you have packed your gear, its time to explore the world of C++..........

Coming up... The History Of C++
Stay tuned and Thank you