C++ Programming

Converting data types from one to another is a most basic aspect for any programmers.

First, let us start with the basics.

int nNumber;

The following are few things to keep in mind for the above line of code:
(more…)

How to use C++ Namespaces with an Example Code

by Koscica Dusko on May 8, 2014

When we talk about namespaces, we should understand certain things about one important operator from the world of C++.

That one important C++ Operator is “::”

When you confront a C programmer with “::” operator, he might look at it but not understand it.

It is one of the things that distinguish the C++ world from C world.
(more…)

How to Debug Programs on Remote Server using GDBServer Example

by Lakshmanan Ganapathy on April 28, 2014

GDBRemote debugging is the process of debugging a program running on a different system (called target) from a different system (called host).

To start remote debugging, a debugger running on host machine connects to a program which is running on the target via network.

The debugger in the host can then control the execution of the program on the remote system and retrieve information about its state.
(more…)

Statistics is an essential part of Math, they have several practical applications, but sometimes very hard to understand for non mathematicians.

In this tutorial, we’ll focus on how to implement an algorithm to calculate statistical median.
(more…)

PAL stands for Physics Abstraction Layer.

Physics engine is a programming library that can model most of the essential factors (e.g. gravity, collision) of the physical world.

With the help of physics engines, we can enhance the reality of computer games or make an accurate emulation of physics experiment.

There are many different physics engine with various programming interfaces, and this leads to the demands of an abstraction programming layer, which can hide engine specific details and expose a common layer for programmers.
(more…)

The set {1, 2, 3, …} is known as the set of natural numbers, they are usually signed as N numbers.

This tutorial is about prime numbers. So what are prime numbers?

Let us take number 15, which could be represented as shown below. This is not a prime number.
15 = 1 * 3 * 5
(more…)

Fibonacci was an Italian mathematician who introduced this subject to European mathematics, but the similar array was mentioned even before his time.

There are two definitions of Fibonacci numbers with slight variation. Both are pretty similar but little different at the same time.
(more…)

STL Tutorial: How to use C++ Vector with Example Program

by Koscica Dusko on February 20, 2014

Vector is an important part of a STL (Standard Template Library).

On a very high-level, STL library has lot of containers that are often used, and it has few methods that could be applied on those containers. Basically STL has several ready-to-use common classes that you can use in your C++ programming. We’ll cover STL in detail probably in a separate article.

Before we discuss about Vector, let us start with an array.
(more…)