Monday, September 30, 2013

Hello C++ : Explained.

1) Processor. 

#include <iostream > 

Iostream is one of the built in libraries provided by c++ to make input output easier.

As the name suggests, I-(Input) O - (Output) stream.

2) Namespace.

There are lot of libraries in c++. 

Even you can write your one of your own. 

To avoid confusion between name of different functions of different libraries the concept namespaces was introduced. 

std namespace defines all standard (inbuilt) functions.

3) 

Main code.
 
 

Sunday, September 29, 2013

Hello C++

Run Dev C++ from start menu.

Press ctrl+n.
[ctrl+n is standard command in for computer programs, which creates new instance, in our case new file]

Type this.

#include<iostream>

using namespace std;

int main()
{
   cout<<"Hello C++";
 
   int hold;
   cin>>hold;
 
   return 0;
}

Execute->Compile & Run. [Or you can press f11 (better way)]

Bingo!!


Introduction

This blog targets the audience with no or little programming background.

All the posts on this blog are very small.

Including this one.

Next 

Dirty Hands

Let's begin.

1)  Install Dev C++ [Windows]

     Download the setup: From Here

     Orwell Dev C++

     Install. Easy-Peasy, huh?

Next