For example, if you want to remove a bit or some bits from a integer (signed or unsigned), you can do this. inline int removeBit(int n, int bit) { …
This puzzle is from Leetcode Online Judge and this may appear quite often during interviews. This puzzle asks you to find the minimal sum for a number triangle. You …
September 28, 2014
beginner, c / c++, code, code library, compiler, implementation, linux, programming languages, python, ubuntu
*.so files under Linux are similar to *.dll on windows. They are both shared library, which contain commonly-used functions/classes. The shared library can be loaded into memory whenever needed …
The Essence of the 8-bit 6502 programming for NES (Nintendo Entertainment System) should be the Sprites. So, what is a Sprite? A Sprite is a moving object in the …
September 20, 2014
BASH Shell, beginner, c / c++, code, code library, console, I/O File, implementation, programming languages, windows, windows command shell
On Linux BASH shell, the ‘nl’ utility is used to print out text file (or string) with line numbers. If you type in nl –help you will have a …