C++ Programming

To understand fuzzy logic, let us take a very simple example.

Imagine a simple light bulb which has two states: light on and light off.

We can mark the light off as false, and light on as true. This would be simple system that has two states and is described with George Boole’s logic. In his honor we have bool data type in C++.

Next, imagine that the simple light bulb could also be dimmed.
(more…)

If you are working on any object oriented programming languages (For example, C++), the following are some of the important concepts that you should understand during your learning phase.

Out of the following concepts, in this article, you’ll learn the basics of Inheritance and Abstract class using a sample C++ code snippet and an explanation that goes along with it.
(more…)

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…)