≡ Menu

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 [...]

{ 4 comments }

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 [...]

{ 4 comments }

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: Data type of nNumber is int, which means that we are dealing with number that will [...]

{ 6 comments }

How to use C++ Namespaces with an Example Code

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 [...]

{ 3 comments }

How to Debug Programs on Remote Server using GDBServer Example

Remote 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 [...]

{ 6 comments }

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. The following are the high-level tasks that will be performed in our example program: Input the dimension of an [...]

{ 6 comments }

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 [...]

{ 3 comments }

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 [...]

{ 16 comments }