2011 in review

The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.

Here’s an excerpt:

A San Francisco cable car holds 60 people. This blog was viewed about 2,200 times in 2011. If it were a cable car, it would take about 37 trips to carry that many people.

Click here to see the complete report.


A Dive Into Object Oriented Programming

A few days back, one of my friends mentioned how 90 % percent of students still program in the old procedural way. And really I was shocked to notice that these stats were remarkably true.

It is unfortunate to see that majority of students jump into learning the Languages and their Syntax instead of paying attention to the basic programming concepts, therefore, leading to poor programming style and bad program designs.

Read more of this post

Switch Statement in C++

Here is the code tutorial for the Switch Statement in C++ Read more of this post

Console Input in C++

The statement used for taking user input from the console is ‘cout’ statement. Read more of this post

Console Output in C++

The command used for outputting text to console is the ‘cout’ statement. It resides in the iostream.h header file within the std namespace. For now ignore the terms and just get familiar with the program below. Read more of this post

if/else if And if/else if/else Selection Structure

Continuing the previous post of Selection Structure, here I am going to advance the Selection structure by including if/else if and then if / else if /else constructs as well.

In simple if statement, a block of code may or may not get executed depending upon the condition set. In the if/else structure, choice is available between two code blocks, your program must execute one of the two code blocks, either within if or within the else construct.

You can also extend the if/else structure by using the if / else if construct. This allows you to specify multiple code blocks each with a condition that must evaluate to true or false. As soon as one of the conditions is satisfied, the code block is executed and rest of the blocks are all skipped. Read more of this post

Selection Structure – The if and if/else Statement

Any simple program usually consists of lines of code that are executed one after the other unconditionally. Take the example of following simple c++ program… Read more of this post