GSL is an advance C/C++ library that is widely used. To install GSL, you can download the source file and following instruction in the included README and INSTALL document. For Unix/Linux users, the GSL library is often availabe in the repository. For example, you can use the following …
Lvalue Reference and Rvalue Reference

Difference betwen Lvalue and Rvalue Reference
-
Lvalue and Rvalue are terrible names. They are due to historical reasonal but people stuck with these names.
-
A lvalue reference has a name while a rvalue reference has no name, in other words, a lvalue reference is persistent while a rvalue reference is …
Copy Arrays in Java
There are several different ways to copy arrays of object (primitive types) in Java.
However,
the fastest way seems to be System.arraycopy.
This methed is implemented using native code and only performs a shallow copy.
Acutally most methods for copying arrays in Java perform shallow copy.
int arr1[] = {0 …Type Cast in Java
- You cannot cast between integer and boolean values.
However it is trivia to convert data between integer and boolean.
For example,
int i = b ? 1 : 0;convert a boolean valuebinto an integer valuei, andboolean b = i != 0convert an integer valueiinto a boolean value …
String in Different Programming Languages
A string is essentially a sequence of characters. This is how string is implemented in many programming languages (string in Java is different). For this reason, you can operate string like an array in some programming languages. This post is a shallow summary on strings in different programming languages. For …
Automated Phone Bill Using Ruby Program
I have decided to try different programming languages. I learn Python a month ago. I would like to say that Python is great scripting language. The only thing I do not like so far is inconsistent about methods and functions. It is annoying to remember whether a call should be …