Reference
A collection of articles on various topics that interest me. Written mostly in order to document my own solutions to problems, and published in the hope that they may help others save some time.
2011
Implementing the abs() Function in Plain C/C++
This article describes how to calculate the absolute value of an integer without using any built-in functions in C or C++. The problem is based on an interview question that I used to ask candidates every once in a while, and it was not so much about coming up with an algorithm, but rather about understanding why the proposed algorithm works.
~ Read
2007
Drawing Bitmap Resources in ATL 7.0 Controls
This article provides minimal and easy to understand code samples for loading, drawing and releasing bitmap resources in ATL 7.0 controls.
~ Read