I’ll take an array over a giant switch-case statement any day.
The array definition will be more compact and easier to see all at once.
Defining actions in an array enforces uniformity.
You can put checks in the code to automatically verify that the array definition is complete. (I.e. verify it contains a definition for every item it [...]
Read the rest of this entry »
If you’re on Windows and you had problems installing Cygwin, there is another package that includes GCC called “MinGW” (minimalist GNU for Windows).
Read the rest of this entry »
Some may argue that C is an outdated language to learn in 2009. I disagree. Learning C requires some degree of understanding how computers really work. And if you can understand pointers, you’re ten steps ahead of the game.
This is the first in a series of articles designed to help the reader learn the C [...]
Read the rest of this entry »
From The Peanut Gallery