C++ Makefile

Makefiles are special format files that together with the make utility will help you to automagically build and manage your projects. (From davetang.org)

Read More >

A Way to Iterate Moore Neighbors

In cellular automata, the Moore neighborhood is defined on a two-dimensional square lattice and is composed of a central cell and the eight cells that surround it. (From Wikipedia)

Read More >

Byte/Bits Unit Conversion

Terabyte (TB): Originally 1,099,511,627,776 (240) bytes, although communications and secondary storage systems developers started using the term to mean 1,000,000,000,000 (1012) bytes. To reduce confu

Read More >

Common Loop Algorithms

In the following sections, we discuss some of the most common algorithms that are implemented as loops. You can use them as starting points for your loop designs.Sum and Average ValueComputing the sum

Read More >

Use Java String Methods API

What are String Methods?String in Java (Concatenation)Building longer strings from shorter stringsString concatenation operator +Scanner Methodsnext()nextLine()String are chars sequencesString grettin

Read More >

Printf in Java

How printf() works?String account = "Prime"; double total = 210.35; int years = 5; System.out.printf("The %s account saved you $%f over %d years\n", account, total, years);pri

Read More >